Documents for Imaging .NET Edition | GCDocuments
GrapeCity.Documents.Imaging Assembly / GrapeCity.Documents.Common Namespace / Unit Structure / StringToUnitType Method
The string to convert.
OUT: On exit, contains the UnitTypeEnum value.

In This Topic
    StringToUnitType Method
    In This Topic
    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.
    Public Shared Function StringToUnitType( _
       ByVal s As System.String, _
       ByRef value As UnitTypeEnum _
    ) As System.Boolean
    public static System.bool StringToUnitType( 
       System.string s,
       ref UnitTypeEnum value


    The string to convert.
    OUT: On exit, contains the UnitTypeEnum value.

    Return Value

    true if no error occurred, false otherwise.
    See Also