# GrapeCity.ActiveReports.Core.Document.ITextLayoutService

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_ActiveReports_Core_Document_ITextLayoutService" data-uid="GrapeCity.ActiveReports.Core.Document.ITextLayoutService" class="text-break">ITextLayoutService Interface
</h1>
  <div class="markdown level0 summary"><p>Represents text layout abstraction.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.ActiveReports.Core.Document.html">GrapeCity.ActiveReports.Core.Document</a></h6>
  <h6><strong>Assembly</strong>: MESCIUS.ActiveReports.Core.Document.dll</h6>
  <h5 id="GrapeCity_ActiveReports_Core_Document_ITextLayoutService_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public interface ITextLayoutService</code></pre>
  </div>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_ActiveReports_Core_Document_ITextLayoutService_Layout_System_String_GrapeCity_ActiveReports_Document_Drawing_Font_System_Single_GrapeCity_ActiveReports_Core_Document_TextLayoutParams_" data-uid="GrapeCity.ActiveReports.Core.Document.ITextLayoutService.Layout(System.String,GrapeCity.ActiveReports.Document.Drawing.Font,System.Single,GrapeCity.ActiveReports.Core.Document.TextLayoutParams)">
          <a class="xref" href="GrapeCity.ActiveReports.Core.Document.ITextLayoutService.Layout.html#GrapeCity_ActiveReports_Core_Document_ITextLayoutService_Layout_System_String_GrapeCity_ActiveReports_Document_Drawing_Font_System_Single_GrapeCity_ActiveReports_Core_Document_TextLayoutParams_">Layout(string, Font, float, TextLayoutParams)</a>
        </td>
        <td class="markdown level1 summary"><p>Layouts a text.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Core_Document_ITextLayoutService_LayoutShrinkToFit_System_String_GrapeCity_ActiveReports_Document_Drawing_Font_System_Single_System_Single_GrapeCity_ActiveReports_Core_Document_TextLayoutParams_System_Single__" data-uid="GrapeCity.ActiveReports.Core.Document.ITextLayoutService.LayoutShrinkToFit(System.String,GrapeCity.ActiveReports.Document.Drawing.Font,System.Single,System.Single,GrapeCity.ActiveReports.Core.Document.TextLayoutParams,System.Single@)">
          <a class="xref" href="GrapeCity.ActiveReports.Core.Document.ITextLayoutService.LayoutShrinkToFit.html#GrapeCity_ActiveReports_Core_Document_ITextLayoutService_LayoutShrinkToFit_System_String_GrapeCity_ActiveReports_Document_Drawing_Font_System_Single_System_Single_GrapeCity_ActiveReports_Core_Document_TextLayoutParams_System_Single__">LayoutShrinkToFit(string, Font, float, float, TextLayoutParams, out float)</a>
        </td>
        <td class="markdown level1 summary"><p>Layouts a text with attempt to find min possible font</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Core_Document_ITextLayoutService_TrimTextLines_System_String_GrapeCity_ActiveReports_Document_Drawing_Font_System_Single_System_Single_GrapeCity_ActiveReports_Core_Document_TextLayoutParams_" data-uid="GrapeCity.ActiveReports.Core.Document.ITextLayoutService.TrimTextLines(System.String,GrapeCity.ActiveReports.Document.Drawing.Font,System.Single,System.Single,GrapeCity.ActiveReports.Core.Document.TextLayoutParams)">
          <a class="xref" href="GrapeCity.ActiveReports.Core.Document.ITextLayoutService.TrimTextLines.html#GrapeCity_ActiveReports_Core_Document_ITextLayoutService_TrimTextLines_System_String_GrapeCity_ActiveReports_Document_Drawing_Font_System_Single_System_Single_GrapeCity_ActiveReports_Core_Document_TextLayoutParams_">TrimTextLines(string, Font, float, float, TextLayoutParams)</a>
        </td>
        <td class="markdown level1 summary"><p>Trim text overflowing the layout box.
Do not take into account justification.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
