# GrapeCity.Drawing.IDrawingContext.GetAutoNumberFormatText

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Drawing_IDrawingContext_GetAutoNumberFormatText_" data-uid="GrapeCity.Drawing.IDrawingContext.GetAutoNumberFormatText*">GetAutoNumberFormatText Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Drawing_IDrawingContext_GetAutoNumberFormatText_" data-uid="GrapeCity.Drawing.IDrawingContext.GetAutoNumberFormatText*"></a>
<h4 id="GrapeCity_Drawing_IDrawingContext_GetAutoNumberFormatText_System_Object_System_Double_GrapeCity_Drawing_TextFormat_" data-uid="GrapeCity.Drawing.IDrawingContext.GetAutoNumberFormatText(System.Object,System.Double,GrapeCity.Drawing.TextFormat)">GetAutoNumberFormatText(object, double, TextFormat)</h4>
<div class="markdown level1 summary"><p>Gets the displayed text of a numeric value that fits to the specified width.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">string GetAutoNumberFormatText(object value, double renderWidth, TextFormat textFormat)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Function GetAutoNumberFormatText(value As Object, renderWidth As Double, textFormat As TextFormat) As String</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="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
      <td><span class="parametername">value</span></td>
      <td><p>The original value.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">renderWidth</span></td>
      <td><p>The width to display numeric value.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">TextFormat</span></td>
      <td><span class="parametername">textFormat</span></td>
      <td><p>The font settings.</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.string">string</a></td>
      <td><p>The auto formatted text of the numeric value. <code>null</code> if normal formatted text should be displayed.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
