# GrapeCity.Spreadsheet.BuiltInNumberFormats.GetBuiltInFormatter

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Spreadsheet_BuiltInNumberFormats_GetBuiltInFormatter_" data-uid="GrapeCity.Spreadsheet.BuiltInNumberFormats.GetBuiltInFormatter*">GetBuiltInFormatter Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Spreadsheet_BuiltInNumberFormats_GetBuiltInFormatter_" data-uid="GrapeCity.Spreadsheet.BuiltInNumberFormats.GetBuiltInFormatter*"></a>
<h4 id="GrapeCity_Spreadsheet_BuiltInNumberFormats_GetBuiltInFormatter_GrapeCity_Spreadsheet_IWorkbook_System_Int32_System_Globalization_CultureInfo_" data-uid="GrapeCity.Spreadsheet.BuiltInNumberFormats.GetBuiltInFormatter(GrapeCity.Spreadsheet.IWorkbook,System.Int32,System.Globalization.CultureInfo)">GetBuiltInFormatter(IWorkbook, int, CultureInfo)</h4>
<div class="markdown level1 summary"><p>Gets a built-in formatter string by the specified ID.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static IFormatter GetBuiltInFormatter(IWorkbook workbook, int numFmtId, CultureInfo culture = null)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function GetBuiltInFormatter(workbook As IWorkbook, numFmtId As Integer, Optional culture As CultureInfo = Nothing) As IFormatter</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.IWorkbook.html">IWorkbook</a></td>
      <td><span class="parametername">workbook</span></td>
      <td><p>The workook that defines the number format.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">numFmtId</span></td>
      <td><p>An integer value indicates the number format ID.</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">culture</span></td>
      <td></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.IFormatter.html">IFormatter</a></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a> value represents the built-in formatter.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_Spreadsheet_BuiltInNumberFormats_GetBuiltInFormatter_GrapeCity_Spreadsheet_IWorkbook_System_Int32_System_Globalization_CultureInfo__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This function has better performance than using <span class="xref">GrapeCity.Spreadsheet.NumberFormat.GetFormatterInternal(GrapeCity.Spreadsheet.NumberFormatStorage,System.Globalization.CultureInfo,GrapeCity.Spreadsheet.Localization.LanguagePackage,GrapeCity.Spreadsheet.NumberFormatConvertMode)</span>.</p>
</div>
</div>
