# GrapeCity.Documents.Excel.IGraphicsInfo.GetDigitWidth

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Excel_IGraphicsInfo_GetDigitWidth_" data-uid="GrapeCity.Documents.Excel.IGraphicsInfo.GetDigitWidth*">GetDigitWidth Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Excel_IGraphicsInfo_GetDigitWidth_" data-uid="GrapeCity.Documents.Excel.IGraphicsInfo.GetDigitWidth*"></a>
<h4 id="GrapeCity_Documents_Excel_IGraphicsInfo_GetDigitWidth_GrapeCity_Documents_Excel_TextFormatInfo_" data-uid="GrapeCity.Documents.Excel.IGraphicsInfo.GetDigitWidth(GrapeCity.Documents.Excel.TextFormatInfo)">GetDigitWidth(TextFormatInfo)</h4>
<div class="markdown level1 summary"><p>Gets the maximum width of 0~9 digits in device independent pixel.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">double GetDigitWidth(TextFormatInfo textFormat)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Function GetDigitWidth(textFormat As TextFormatInfo) As Double</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.Documents.Excel.TextFormatInfo.html">TextFormatInfo</a></td>
      <td><span class="parametername">textFormat</span></td>
      <td><p>Text formats</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.double">double</a></td>
      <td><p>The maximum width of 0~9 digits.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_Documents_Excel_IGraphicsInfo_GetDigitWidth_GrapeCity_Documents_Excel_TextFormatInfo__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Useful formulas for wrapping native implementation which returns pixels:</p>
<p>
[Device independent pixel] = Pixel / [DPI Scale]
</p><p>
[DPI Scale] = DPI / 96
</p>
</div>
</div>
