# GrapeCity.ActiveReports.Rendering.Tools.Kinsoku.GetLineBreak

## Content

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



<h1 id="GrapeCity_ActiveReports_Rendering_Tools_Kinsoku_GetLineBreak_" data-uid="GrapeCity.ActiveReports.Rendering.Tools.Kinsoku.GetLineBreak*">GetLineBreak Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Rendering_Tools_Kinsoku_GetLineBreak_" data-uid="GrapeCity.ActiveReports.Rendering.Tools.Kinsoku.GetLineBreak*"></a>
<h4 id="GrapeCity_ActiveReports_Rendering_Tools_Kinsoku_GetLineBreak_System_String_System_Int32_System_Boolean_System_Boolean_System_Boolean_" data-uid="GrapeCity.ActiveReports.Rendering.Tools.Kinsoku.GetLineBreak(System.String,System.Int32,System.Boolean,System.Boolean,System.Boolean)">GetLineBreak(string, int, bool, bool, bool)</h4>
<div class="markdown level1 summary"><p>Find latest possible line break position before 'lineBreakPos'.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static int GetLineBreak(string text, int lineBreakPos, bool useKinsoku, bool breakNotJapan, bool firstInLine = true)</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>Source text.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">lineBreakPos</span></td>
      <td><p>Desired line break position.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">useKinsoku</span></td>
      <td><p>If False, kinsoku rules will be ignored.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">breakNotJapan</span></td>
      <td><p>If True, non-japanese words can be splitted.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">firstInLine</span></td>
      <td><p>The source text locates at the start of the line.</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.int32">int</a></td>
      <td><p>Line break position.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
