# GrapeCity.Spreadsheet.BuiltInNumberFormats.GetDecimalPartLength

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Spreadsheet_BuiltInNumberFormats_GetDecimalPartLength_" data-uid="GrapeCity.Spreadsheet.BuiltInNumberFormats.GetDecimalPartLength*">GetDecimalPartLength Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Spreadsheet_BuiltInNumberFormats_GetDecimalPartLength_" data-uid="GrapeCity.Spreadsheet.BuiltInNumberFormats.GetDecimalPartLength*"></a>
<h4 id="GrapeCity_Spreadsheet_BuiltInNumberFormats_GetDecimalPartLength_GrapeCity_Spreadsheet_NumberFormat_System_Int32_GrapeCity_Spreadsheet_IWorkbook_" data-uid="GrapeCity.Spreadsheet.BuiltInNumberFormats.GetDecimalPartLength(GrapeCity.Spreadsheet.NumberFormat,System.Int32,GrapeCity.Spreadsheet.IWorkbook)">GetDecimalPartLength(NumberFormat, int, IWorkbook)</h4>
<div class="markdown level1 summary"><p>Get decimal part length from specify number format.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static int GetDecimalPartLength(NumberFormat numberFormat, int sectionIndex, IWorkbook workbook)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function GetDecimalPartLength(numberFormat As NumberFormat, sectionIndex As Integer, workbook As IWorkbook) As Integer</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.NumberFormat.html">NumberFormat</a></td>
      <td><span class="parametername">numberFormat</span></td>
      <td><p>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">sectionIndex</span></td>
      <td><p>Section index</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Spreadsheet.IWorkbook.html">IWorkbook</a></td>
      <td><span class="parametername">workbook</span></td>
      <td><p>Workbook which store number format</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="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><p>A decimal part length.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
