Message-ID: <444597168.2431.1710837092946.JavaMail.web05$@web05> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_2430_1792300691.1710837092946" ------=_Part_2430_1792300691.1710837092946 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html NumberFormat.CreateAccounting(Int32, Boolean, NumberFormat.Color= )

NumberFormat.CreateAccounting(Int32, Boolean, NumberFormat.Color)

Description

=20

Creates an accounting format string.

=20
C#
=20
 public System.String CreateAccounting(int numDecimalPlaces, boolean useDol=
larSign, Color negativeColor)
=20
=20
vb.net
=20
Public Function CreateAccounting(ByVal numDecimalPlaces As Integer, ByVal u=
seDollarSign As Boolean, ByVal negativeColor As Color) As String
=20
=20

Parameters

=20
numDecimalPlaces
The number of decimal places to disp= lay.=20
useDollarSign
If=20 true, the dollar sign will be displayed.=20
negativeColor
A color to use when displaying negative nu= mbers.=20 negativeColor may be null.=20

Returns

An accounting format string.=20

Examples

=20
C#
=20

          //--- Create a style.
          Style styl =3D wb.CreateStyle();

          //--- The following creates the format
          //--- "_($* #,##0.00_);[Green]_($* #,##0.00_);_(* \"-\&=
quot;_);_(@_)"
          styl.NumberFormat =3D wb.NumberFormat.CreateAccounting(2,
               true,
               NumberFormat.Color.Green);
        
=20
=20
vb.net
=20

          '--- Create a style.
          Dim styl As Style =3D wb.CreateStyle()

          '--- The following creates the format
          '--- "_($* #,##0.00_);[Green]_($* #,##0.00_);_(* \"-\&q=
uot;_);_(@_)"
          styl.NumberFormat =3D wb.NumberFormat.CreateAccounting(2, _
               True, _
               NumberFormat.Color.Green)
        
=20
------=_Part_2430_1792300691.1710837092946--