RhinoCommon API
PersistentSettingsConverterTryParseEnum Method (Type, String, Int32) |
Converts an enum value name to its integer
equivalent.
Namespace: Rhino
Assembly: RhinoCommon (in RhinoCommon.dll)
public static bool TryParseEnum( Type type, string enumValueName, out int value )
Public Shared Function TryParseEnum ( type As Type, enumValueName As String, <OutAttribute> ByRef value As Integer ) As Boolean
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: BooleanReturns true if the the successfully converted or false if not.