Xceed Grid for WinForms v4.3 Documentation
Xceed.Editors.v2.6 Assembly / Xceed.Editors Namespace / WinNumericTextBox Class / TryParse Method
A string containing the numeric value to parse.
The numeric equivalent to the string contained in editText. If editText is empty, NullValue is returned.


In This Topic
    TryParse Method (WinNumericTextBox)
    In This Topic
    Parses the specified into its numeric equivalent.
    Syntax
    'Declaration
     
    Public Function TryParse( _
       ByVal editText As String, _
       ByRef parsedResult As Object _
    ) As Boolean
    'Usage
     
    Dim instance As WinNumericTextBox
    Dim editText As String
    Dim parsedResult As Object
    Dim value As Boolean
     
    value = instance.TryParse(editText, parsedResult)
    public bool TryParse( 
       string editText,
       out object parsedResult
    )

    Parameters

    editText
    A string containing the numeric value to parse.
    parsedResult
    The numeric equivalent to the string contained in editText. If editText is empty, NullValue is returned.

    Return Value

    true if editText was successfully parsed; false otherwise.
    Remarks

    The editText will be parsed according to the EditFormatProvider and the control's current NumericTextBoxArea.Mask.

    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also