FlexReport for WinForms | ComponentOne
C1.Win.C1Document.4.5.2 Assembly / C1.Win.C1Document Namespace / Unit Structure / TryParse Method / TryParse(String,Double,UnitTypeEnum) Method
The string to parse.
OUT: value of Unit structure.
OUT: units of Unit structure.

In This Topic
    TryParse(String,Double,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 String, _
       ByRef value As Double, _
       ByRef units As UnitTypeEnum _
    ) As Boolean
    public static bool TryParse( 
       string s,
       out double 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