GetBaseClassAddOptionEnumListT Method (String, T) |
Adds a choice of enum values as list option
Namespace:
Rhino.Input.Custom
Assembly:
RhinoCommon (in RhinoCommon.dll)
Syntaxpublic int AddOptionEnumList<T>(
string englishOptionName,
T defaultValue
)
where T : struct, new(), IConvertible
Public Function AddOptionEnumList(Of T As {Structure, New, IConvertible}) (
englishOptionName As String,
defaultValue As T
) As IntegerParameters
- englishOptionName
- Type: SystemString
The name of the option - defaultValue
- Type: T
The default value
Type Parameters
- T
- The enum type
Return Value
Type:
Int32Option index
Exceptions| Exception | Condition |
|---|
| ArgumentException | Gets thrown if defaultValue provided is not an enum type. |
Version InformationRhino for Mac
Supported in: 5.4
Rhino for Windows
Supported in: 6.8
See Also