VintaSoft Imaging .NET SDK 15.0: Documentation for .NET developer
Vintasoft.Imaging.Office.DocumentEditor.UI Namespace / DocumentUnitsConverter Class / TryConvertNumberToDip Methods / TryConvertNumberToDip(String,Boolean,Double,UnitOfMeasure) Method
Syntax Requirements SeeAlso
In This Topic
    TryConvertNumberToDip(String,Boolean,Double,UnitOfMeasure) Method (DocumentUnitsConverter)
    In This Topic
    Tries to convert a string, which represent a number measured in units, to the number in the Device Independed Pixels (DIP).
    Syntax
    'Declaration
    
    Public Overloads Overridable Function TryConvertNumberToDip( _
    ByVal text
    The text to convert.
    As System.String, _
    ByVal allowNegative
    A value indicating whether negative number is allowed.
    As Boolean, _
    ByRef value
    The converted value.
    As Double, _
    ByVal units
    The units of measure for text.
    As Vintasoft.Imaging.UnitOfMeasure _
    ) As Boolean
    public virtual bool TryConvertNumberToDip(
    System.String text,
    bool allowNegative,
    out double value,
    Vintasoft.Imaging.UnitOfMeasure units
    )
    public: virtual bool TryConvertNumberToDip(
    System.String text,
    bool allowNegative,
    [PARAMFLAG::Out] double value,
    Vintasoft.Imaging.UnitOfMeasure units
    )
    public:
    virtual bool TryConvertNumberToDip(
    System.String text,
    bool allowNegative,
    [Out] double value,
    Vintasoft.Imaging.UnitOfMeasure units
    )

    Parameters

    text
    The text to convert.
    allowNegative
    A value indicating whether negative number is allowed.
    value
    The converted value.
    units
    The units of measure for text.

    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