PersistentSettingsConverterTryParseEnum Method (Type, String, Int32) |
Converts an enum value name to its integer
equivalent.
Namespace:
Rhino
Assembly:
RhinoCommon (in RhinoCommon.dll)
Syntaxpublic 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:
Boolean
Returns true if the the successfully converted or false if not.
Version InformationRhino for Windows
Supported in: 6.8
See Also