Documents for Imaging .NET Edition | GCDocuments
GrapeCity.Documents.Common Assembly / GrapeCity.Documents.Common Namespace / Unit Structure / TryParse Method / TryParse(String,Single,UnitTypeEnum) Method
The string to parse.
OUT: value of Unit structure.
OUT: units of Unit structure.

In This Topic
    TryParse(String,Single,UnitTypeEnum) Method
    In This Topic
    Parses a string and gets Value and Units from that string.
    Syntax
    'Declaration
     
    Public Overloads Shared Function TryParse( _
       ByVal s As System.String, _
       ByRef value As System.Single, _
       ByRef units As UnitTypeEnum _
    ) As System.Boolean
    public static System.bool TryParse( 
       System.string s,
       out System.float value,
       out UnitTypeEnum units
    )

    Parameters

    s
    The string to parse.
    value
    OUT: value of Unit structure.
    units
    OUT: units of Unit structure.

    Return Value

    A true if conversion was successfull.
    See Also