FlexReport for UWP | ComponentOne
C1.UWP.Document Assembly / C1.Xaml.Document 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 Unit.Utits 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