PdfJavaScript
GetNumberFormatString Method
|
Get a AFNumber_Format string
Namespace:
Spire.Pdf.Actions
Assembly:
Spire.Pdf (in Spire.Pdf.dll) Version: 11.3.7.0 (11.3.7.1046)
Syntax
public static string GetNumberFormatString(
int nDec,
int sepStyle,
int negStyle,
int currStyle,
string strCurrency,
bool bCurrencyPrepend
)
Public Shared Function GetNumberFormatString (
nDec As Integer,
sepStyle As Integer,
negStyle As Integer,
currStyle As Integer,
strCurrency As String,
bCurrencyPrepend As Boolean
) As String
public:
static String^ GetNumberFormatString(
int nDec,
int sepStyle,
int negStyle,
int currStyle,
String^ strCurrency,
bool bCurrencyPrepend
)
static member GetNumberFormatString :
nDec : int *
sepStyle : int *
negStyle : int *
currStyle : int *
strCurrency : string *
bCurrencyPrepend : bool -> string
Parameters
-
nDec
-
Type:
System
Int32
The number of places after the decimal point
-
sepStyle
-
Type:
System
Int32
The integer denoting whether to use a separator or not. If sepStyle=0, use commas. If sepStyle=1, do not separate.
-
negStyle
-
Type:
System
Int32
The formatting used for negative numbers: 0 = MinusBlack, 1 = Red, 2 = ParensBlack, 3 = ParensRed
-
currStyle
-
Type:
System
Int32
The currency style - not used
-
strCurrency
-
Type:
System
String
The currency symbol
-
bCurrencyPrepend
-
Type:
System
Boolean
True to prepend the currency symbol; false to display on the end of the number
Return Value
Type:
String
See Also