GetBaseClassAddOptionEnumSelectionListT Method (LocalizeStringPair, IEnumerableT, Int32) |
Adds a list of enumerated values as option list. Use enumSelection[go.Option.CurrentListOptionIndex] to retrieve selection.
Namespace:
Rhino.Input.Custom
Assembly:
RhinoCommon (in RhinoCommon.dll)
Since: 8.37
Syntaxpublic int AddOptionEnumSelectionList<T>(
LocalizeStringPair optionName,
IEnumerable<T> enumSelection,
int listCurrentIndex
)
where T : struct, new(), IConvertible
Public Function AddOptionEnumSelectionList(Of T As {Structure, New, IConvertible}) (
optionName As LocalizeStringPair,
enumSelection As IEnumerable(Of T),
listCurrentIndex As Integer
) As IntegerParameters
- optionName
- Type: Rhino.UILocalizeStringPair
The name of the option - enumSelection
- Type: System.Collections.GenericIEnumerableT
The enumerated values to use. - listCurrentIndex
- Type: SystemInt32
Zero based index of current option.
Type Parameters
- T
- The enumerated type
Return Value
Type:
Int32Option index
See Also