Converts a string to a
UnitTypeEnum value. The string can be one of the following: "doc", "in", "mm", "pc", "dsp", "pt", "tw", "inhs", "cm", "dip". This method is case-insensitive.
'Declaration
Public Shared Function StringToUnitType( _
ByVal As System.String, _
ByRef As UnitTypeEnum _
) As System.Boolean
public static System.bool StringToUnitType(
System.string ,
ref UnitTypeEnum
)
Parameters
- s
- The string to convert.
- value
- OUT: On exit, contains the UnitTypeEnum value.
Return Value
true if no error occurred, false otherwise.