Excerpt |
---|
Creates a string for displaying fractions. |
Signature |
---|
C# | C# | Wiki Markup |
---|
{description}
{excerpt}Creates a string for displaying fractions.{excerpt}
{signature:C#}
public System.String CreateFraction(int numDigits)
|
Signature |
---|
{signature}{signature:vb.net | vb.net | }
Public Function CreateFraction(ByVal numDigits As Integer) As String
|
...
The number of digits to display.
Returns |
---|
A fraction format string. |
Example |
---|
Code Block |
---|
| csharp | csharp |
title | C# |
---|
{signature}
{parameters}
{param:numDigits}The number of digits to display.{param}
{returns}A fraction format string.{returns}
{example}{code:csharp|title=C#}
//--- Create a style.
Style styl = wb.CreateStyle();
//--- Create the fraction format "# ???/???".
styl.NumberFormat = wb.NumberFormat.CreateFraction(3);
Code Block |
---|
{code}
{code:vb.net
vb.net | title | |title=vb.net
}
'--- Create a style.
Dim styl As Style = wb.CreateStyle()
'--- Create the fraction format "# ???/???"
styl.NumberFormat = wb.NumberFormat.CreateFraction(3)
{code}
{example}