# C1.Framework.Drawing.Gdi.StringTrimming

## Content

<div class="doc-site-dotnet-api-container">




  <h1 id="C1_Framework_Drawing_Gdi_StringTrimming" data-uid="C1.Framework.Drawing.Gdi.StringTrimming" class="text-break">StringTrimming Enum
</h1>
  <div class="markdown level0 summary"><p>Specifies how to trim characters from a string that does not completely fit into a layout shape.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Framework.Drawing.Gdi.html">C1.Framework.Drawing.Gdi</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.C1Input.4.8.dll</h6>
  <h5 id="C1_Framework_Drawing_Gdi_StringTrimming_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public enum StringTrimming</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Enum StringTrimming</code></pre>
  </div>
  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    <thead>
    </thead></thead><tbody>
      <tr>
        <td id="C1_Framework_Drawing_Gdi_StringTrimming_Character">Character</td>
        <td><p>Specifies that the text is trimmed to the nearest character.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Drawing_Gdi_StringTrimming_EllipsisCharacter">EllipsisCharacter</td>
        <td><p>Specifies that the text is trimmed to the nearest character,
and an ellipsis is inserted at the end of a trimmed line.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Drawing_Gdi_StringTrimming_EllipsisPath">EllipsisPath</td>
        <td><p>The center is removed from trimmed lines and replaced by an ellipsis.
The algorithm keeps as much of the last slash-delimited segment of the line as possible.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Drawing_Gdi_StringTrimming_EllipsisWord">EllipsisWord</td>
        <td><p>Specifies that text is trimmed to the nearest word, and an ellipsis is
inserted at the end of a trimmed line.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Drawing_Gdi_StringTrimming_None">None</td>
        <td><p>Specifies no trimming.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Drawing_Gdi_StringTrimming_Word">Word</td>
        <td><p>Specifies that text is trimmed to the nearest word.</p>
</td>
      </tr>
    </tbody>
  </table>
</div>
