# GrapeCity.Spreadsheet.BuiltInNumberFormats.GetPredefinedNumberFormat

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Spreadsheet_BuiltInNumberFormats_GetPredefinedNumberFormat_" data-uid="GrapeCity.Spreadsheet.BuiltInNumberFormats.GetPredefinedNumberFormat*">GetPredefinedNumberFormat Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Spreadsheet_BuiltInNumberFormats_GetPredefinedNumberFormat_" data-uid="GrapeCity.Spreadsheet.BuiltInNumberFormats.GetPredefinedNumberFormat*"></a>
<h4 id="GrapeCity_Spreadsheet_BuiltInNumberFormats_GetPredefinedNumberFormat_GrapeCity_Spreadsheet_PredefinedNumberFormats_System_Globalization_CultureInfo_System_Int32_" data-uid="GrapeCity.Spreadsheet.BuiltInNumberFormats.GetPredefinedNumberFormat(GrapeCity.Spreadsheet.PredefinedNumberFormats,System.Globalization.CultureInfo,System.Int32)">GetPredefinedNumberFormat(PredefinedNumberFormats, CultureInfo, int)</h4>
<div class="markdown level1 summary"><p>Gets predefined number format from the specified category.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static NumberFormat GetPredefinedNumberFormat(PredefinedNumberFormats numFmt, CultureInfo cultureInfo, int decimalDigits)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function GetPredefinedNumberFormat(numFmt As PredefinedNumberFormats, cultureInfo As CultureInfo, decimalDigits As Integer) As NumberFormat</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.Spreadsheet.PredefinedNumberFormats.html">PredefinedNumberFormats</a></td>
      <td><span class="parametername">numFmt</span></td>
      <td><p>The predefined number format category.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.globalization.cultureinfo">CultureInfo</a></td>
      <td><span class="parametername">cultureInfo</span></td>
      <td><p>The associated culture.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">decimalDigits</span></td>
      <td><p>A numeric value indicates the total number of decimal digits.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.Spreadsheet.NumberFormat.html">NumberFormat</a></td>
      <td><p>A predefined number format from the specified category.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
