Click or drag to resize

PersistentSettingsConverterTryParseEnum Method (Type, String, Int32)

Converts an enum value name to its integer equivalent.

Namespace:  Rhino
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public static bool TryParseEnum(
	Type type,
	string enumValueName,
	out int value
)

Parameters

type
Type: SystemType
The enum type
enumValueName
Type: SystemString
Enum value name as string
value
Type: SystemInt32
Output value, will get set to -1 on error

Return Value

Type: Boolean
Returns true if the the successfully converted or false if not.
Version Information

Rhino for Windows

Supported in: 6.8
See Also