Click or drag to resize

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
Syntax
public int AddOptionEnumSelectionList<T>(
	LocalizeStringPair optionName,
	IEnumerable<T> enumSelection,
	int listCurrentIndex
)
where T : struct, new(), IConvertible

Parameters

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: Int32
Option index
See Also