Spread WPF 18
GrapeCity.Drawing Namespace / IDrawingContext Interface / GetAutoNumberFormatText Method
The original value.
The width to display numeric value.
The font settings.


In This Topic
    GetAutoNumberFormatText Method
    In This Topic
    Gets the displayed text of a numeric value that fits to the specified width.
    Syntax
    'Declaration
     
    Function GetAutoNumberFormatText( _
       ByVal value As Object, _
       ByVal renderWidth As Double, _
       ByVal textFormat As TextFormat _
    ) As String
    'Usage
     
    Dim instance As IDrawingContext
    Dim value As Object
    Dim renderWidth As Double
    Dim textFormat As TextFormat
    Dim value As String
     
    value = instance.GetAutoNumberFormatText(value, renderWidth, textFormat)
    string GetAutoNumberFormatText( 
       object value,
       double renderWidth,
       TextFormat textFormat
    )

    Parameters

    value
    The original value.
    renderWidth
    The width to display numeric value.
    textFormat
    The font settings.

    Return Value

    The auto formatted text of the numeric value. null if normal formatted text should be displayed.
    See Also