VintaSoft Imaging .NET SDK 15.0: Documentation for .NET developer
Vintasoft.Imaging.Office.DocumentEditor.UI Namespace / DocumentUnitsConverter Class / TryConvertNumber(String,Boolean,Double) Method
Syntax Requirements SeeAlso
In This Topic
    TryConvertNumber(String,Boolean,Double) Method (DocumentUnitsConverter)
    In This Topic
    Tries to convert a string to a number.
    Syntax
    'Declaration
    
    Public Overridable Function TryConvertNumber( _
    ByVal text
    The string to convert.
    As System.String, _
    ByVal value
    The converted value.
    As Boolean, _
    ByRef allowNegative
    A value indicating whether negative number is allowed.
    As Double _
    ) As Boolean
    public virtual bool TryConvertNumber(
    System.String text,
    bool value,
    out double allowNegative
    )
    public: virtual bool TryConvertNumber(
    System.String text,
    bool value,
    [PARAMFLAG::Out] double allowNegative
    )
    public:
    virtual bool TryConvertNumber(
    System.String text,
    bool value,
    [Out] double allowNegative
    )

    Parameters

    text
    The string to convert.
    value
    The converted value.
    allowNegative
    A value indicating whether negative number is allowed.

    Return Value

    True if string was converted successfully; otherwise, false.
    Requirements

    Target Platforms: .NET 10; .NET 9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also