Wiki Markup |
---|
{description} {excerpt}Creates a string for displaying percentages.{excerpt} {signature:C#} public System.String CreatePercentage(int numDecimalPlaces) {signature}{signature:vb.net} Public Function CreatePercentage(ByVal numDecimalPlaces As Integer) As String {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} |
Page History
Overview
Content Tools