# C1.Framework.Drawing.Gdi.DeviceContexts.DeviceContext.TabbedTextExtent

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Framework_Drawing_Gdi_DeviceContexts_DeviceContext_TabbedTextExtent_" data-uid="C1.Framework.Drawing.Gdi.DeviceContexts.DeviceContext.TabbedTextExtent*">TabbedTextExtent Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Framework_Drawing_Gdi_DeviceContexts_DeviceContext_TabbedTextExtent_" data-uid="C1.Framework.Drawing.Gdi.DeviceContexts.DeviceContext.TabbedTextExtent*"></a>
<h4 id="C1_Framework_Drawing_Gdi_DeviceContexts_DeviceContext_TabbedTextExtent_System_String_System_Int32___System_Drawing_Size__" data-uid="C1.Framework.Drawing.Gdi.DeviceContexts.DeviceContext.TabbedTextExtent(System.String,System.Int32[],System.Drawing.Size@)">TabbedTextExtent(string, int[], out Size)</h4>
<div class="markdown level1 summary"><p>The TabbedTextExtent method computes the width and height of a character string.If the string contains
one or more tab characters, the width of the string is based upon the specified tab stops.
The TabbedTextExtent method uses the currently selected font to compute the dimensions of the string.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool TabbedTextExtent(string text, int[] tabStopPositions, out Size size)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function TabbedTextExtent(text As String, tabStopPositions As Integer(), ByRef size As Size) As Boolean</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.string">string</a></td>
      <td><span class="parametername">text</span></td>
      <td><p>A <b>string</b> that saves a character string to be computed.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>[]</td>
      <td><span class="parametername">tabStopPositions</span></td>
      <td><p>An array containing the tab-stop positions, in device units. The tab stops must be sorted in increasing order;
the smallest x-value should be the first item in the array.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.size">Size</a></td>
      <td><span class="parametername">size</span></td>
      <td><p>If the function succeeds, the value is the dimensions of the string in logical units.
Else the value is Size.Empty.</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.boolean">bool</a></td>
      <td><p>Retrun a value indictaes whether this function succeed or not.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
