[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.AcroForms.Field.FormatNumberValue

FormatNumberValue Method

FormatNumberValue(double, int, NumberSeparatorStyle, NumberNegativeStyle, string, CurrencySymbolStyle)

Formats a value using the specified numeric formatting options.

Declaration
public static string FormatNumberValue(double value, int decimalPlaces, Field.NumberSeparatorStyle separatorStyle, Field.NumberNegativeStyle negativeStyle, string currencySymbol, Field.CurrencySymbolStyle currencySymbolStyle)
Public Shared Function FormatNumberValue(value As Double, decimalPlaces As Integer, separatorStyle As Field.NumberSeparatorStyle, negativeStyle As Field.NumberNegativeStyle, currencySymbol As String, currencySymbolStyle As Field.CurrencySymbolStyle) As String
Parameters
Type Name Description
double value

The value to format.

int decimalPlaces

The number of digits that appear to the right of the decimal point. Valid values are from 0 to 10, inclusive.

Field.NumberSeparatorStyle separatorStyle

The placement of commas and periods, see Field.NumberSeparatorStyle.

Field.NumberNegativeStyle negativeStyle

How negative numbers are displayed.

string currencySymbol

The currency symbol, or null or empty string.

Field.CurrencySymbolStyle currencySymbolStyle

The location of the currency symbol in relation to the number. This parameter is meaningful only if currencySymbol is not null or empty.

Returns
Type Description
string