Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
Description

Excerpt

Creates a string for displaying percentages.

Signature
C#C#
Wiki Markup
{description}
{excerpt}Creates a string for displaying percentages.{excerpt}
{signature:C#}
 public System.String CreatePercentage(int numDecimalPlaces)
Signature
{signature}{signature:vb.net
vb.net
}
Public Function CreatePercentage(ByVal numDecimalPlaces As Integer) As String
Parameters

...

The number of decimal places to display.

Returns

A format string for percentages.

{signature}
{parameters}
{param:numDecimalPlaces}The number of decimal places to display.{param}
{returns}A format string for percentages.{returns}
{example}{code:csharp|title=C#}

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

          //--- Create the percentage format "0.000%".
          styl.NumberFormat = wb.NumberFormat.CreatePercentage(3);
        
{code}
{code:vb.net
|title=vb.net
}

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

          '--- Create the percentage format "0.000%".
          styl.NumberFormat = wb.NumberFormat.CreatePercentage(3)
        {code}

{example}
Example
Code Block
csharpcsharp
titleC#
Code Block
vb.nettitle