Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
Description

Excerpt

Creates a string for displaying fractions.

Signature
C#
C#
 public System.String CreateFraction(int numDigits)
Signature
vb.net
vb.net
Public Function CreateFraction(ByVal numDigits As Integer) As String
Parameters
Param
numDigits
numDigits

The number of digits to display.

Returns

A fraction format string.

Example
Code Block
csharp
csharp
titleC#

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

          //--- Create the fraction format "# ???/???".
          styl.NumberFormat = wb.NumberFormat.CreateFraction(3);
        
Code Block
vb.net
vb.net
titlevb.net

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

          '--- Create the fraction format "# ???/???"
          styl.NumberFormat = wb.NumberFormat.CreateFraction(3)