FlexReport for .NET | ComponentOne
C1.Win.Document.8 Assembly / C1.Win.Document Namespace / Unit Structure / StringToUnitType Method
The string to convert.
OUT: On exit, contains the UnitTypeEnum value.

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

    Parameters

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

    Return Value

    true if no error occurred, false otherwise.
    See Also