[]
        
(Showing Draft Content)

GrapeCity.Drawing.IDrawingContext.GetAutoNumberFormatText

GetAutoNumberFormatText Method

GetAutoNumberFormatText(object, double, TextFormat)

Gets the displayed text of a numeric value that fits to the specified width.

Declaration
string GetAutoNumberFormatText(object value, double renderWidth, TextFormat textFormat)
Function GetAutoNumberFormatText(value As Object, renderWidth As Double, textFormat As TextFormat) As String
Parameters
Type Name Description
object value

The original value.

double renderWidth

The width to display numeric value.

TextFormat textFormat

The font settings.

Returns
Type Description
string

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