VintaSoft Imaging .NET SDK 15.0: Documentation for .NET developer
Vintasoft.Imaging.Office.DocumentEditor.UI Namespace / DocumentUnitsConverter Class / TryConvertSizeToDip(String,Boolean,VintasoftSize) Method
Syntax Requirements SeeAlso
In This Topic
    TryConvertSizeToDip(String,Boolean,VintasoftSize) Method (DocumentUnitsConverter)
    In This Topic
    Tries to convert a string, which represents size, to the number in the Device Independed Pixels (DIP).
    Syntax
    'Declaration
    
    Public Overridable Function TryConvertSizeToDip( _
    ByVal text
    A string, which represents size.
    As System.String, _
    ByVal isPageSize
    A value indicating whether text specifies a page size.
    As Boolean, _
    ByRef value
    The converted value.
    As Vintasoft.Primitives.VintasoftSize _
    ) As Boolean
    public virtual bool TryConvertSizeToDip(
    System.String text,
    bool isPageSize,
    out Vintasoft.Primitives.VintasoftSize value
    )
    public: virtual bool TryConvertSizeToDip(
    System.String text,
    bool isPageSize,
    [PARAMFLAG::Out] Vintasoft.Primitives.VintasoftSize value
    )
    public:
    virtual bool TryConvertSizeToDip(
    System.String text,
    bool isPageSize,
    [Out] Vintasoft.Primitives.VintasoftSize value
    )

    Parameters

    text
    A string, which represents size.
    isPageSize
    A value indicating whether text specifies a page size.
    value
    The converted value.

    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