Click or drag to resize
GetBaseClassAddOptionEnumListT Method
Add a choice of enum values as list option

Namespace: Rhino.Input.Custom
Assembly: RhinoCommon (in RhinoCommon.dll) Version: 5.1.50000.0 (5.0.20693.0)
Syntax
public int AddOptionEnumList<T>(
	string englishOptionName,
	T defaultValue
)
where T : struct, new(), IConvertible

Parameters

englishOptionName
Type: SystemString
The name of the option
defaultValue
Type: T
The default value

Type Parameters

T
The enum type

Return Value

Type: Int32
Option index
Exceptions
ExceptionCondition
ArgumentExceptionGets thrown if defaultValue provided is not an enum type.
See Also