GetBaseClass.GetSelectedEnumValueFromSelectionList(T) Method

GetBaseClassGetSelectedEnumValueFromSelectionListT Method

Returns the selected enum value by looking at the list of values from which to select. Use this in combination with AddOptionEnumSelectionListT(String, IEnumerableT, Int32)

Namespace:  Rhino.Input.Custom
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public T GetSelectedEnumValueFromSelectionList<T>(
	IEnumerable<T> selectionList
)
where T : struct, new(), IConvertible
Public Function GetSelectedEnumValueFromSelectionList(Of T As {Structure, New, IConvertible}) ( 
	selectionList As IEnumerable(Of T)
) As T

Parameters

selectionList
Type: System.Collections.GenericIEnumerableT

Type Parameters

T

Return Value

Type: T

[Missing <returns> documentation for "M:Rhino.Input.Custom.GetBaseClass.GetSelectedEnumValueFromSelectionList``1(System.Collections.Generic.IEnumerable{``0})"]

Exceptions
ExceptionCondition
ArgumentExceptionGets thrown if type T is not an enum type.
IndexOutOfRangeExceptionIf 0 >= CurrentListOptionIndex or CurrentListOptionIndex > N where N is the number of enum values.
Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.8
See Also