Click or drag to resize

GetBaseClassAddOptionEnumListT Method (String, T, T)

Adds a choice of enum values as list option. Allows to include only some enum values.

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

Parameters

englishOptionName
Type: SystemString
The name of the option
defaultValue
Type: T
The default value
include
Type: T
An array of enum values to use. This argument can also be null; in this case, the whole enum is used.

Type Parameters

T
The enum type

Return Value

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

Rhino for Windows

Supported in: 6.1 BETA
See Also