# C1.Report.Rendering.BrickBase.PrepareSplit

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Report_Rendering_BrickBase_PrepareSplit_" data-uid="C1.Report.Rendering.BrickBase.PrepareSplit*">PrepareSplit Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Report_Rendering_BrickBase_PrepareSplit_" data-uid="C1.Report.Rendering.BrickBase.PrepareSplit*"></a>
<h4 id="C1_Report_Rendering_BrickBase_PrepareSplit_C1_Report_Rendering_RequestedSplitPosition_C1_Report_Rendering_SplitContext_C1_Report_SplitBehavior_C1_Document_BordersSplitMode_System_Double_System_Double_System_Double_System_Double__System_Double__" data-uid="C1.Report.Rendering.BrickBase.PrepareSplit(C1.Report.Rendering.RequestedSplitPosition,C1.Report.Rendering.SplitContext,C1.Report.SplitBehavior,C1.Document.BordersSplitMode,System.Double,System.Double,System.Double,System.Double@,System.Double@)">PrepareSplit(RequestedSplitPosition, SplitContext, SplitBehavior, BordersSplitMode, double, double, double, out double, out double)</h4>
<div class="markdown level1 summary"><p>Utility method.
-) Checks for KeepTogether.
-) Checks whether split position falls on borders and corrects splitPosition in this case.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected bool PrepareSplit(RequestedSplitPosition rsp, SplitContext splitContext, SplitBehavior splitBehavior, BordersSplitMode bordersSplitMode, double size, double nearOffset, double farOffset, out double splitPosition, out double contentSplitPosition)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Function PrepareSplit(rsp As RequestedSplitPosition, splitContext As SplitContext, splitBehavior As SplitBehavior, bordersSplitMode As BordersSplitMode, size As Double, nearOffset As Double, farOffset As Double, ByRef splitPosition As Double, ByRef contentSplitPosition As Double) 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="C1.Report.Rendering.RequestedSplitPosition.html">RequestedSplitPosition</a></td>
      <td><span class="parametername">rsp</span></td>
      <td><p>Represents the split position where object should be break.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Report.Rendering.SplitContext.html">SplitContext</a></td>
      <td><span class="parametername">splitContext</span></td>
      <td><p>Defines the context of section splitting.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Report.SplitBehavior.html">SplitBehavior</a></td>
      <td><span class="parametername">splitBehavior</span></td>
      <td><p>Defines the splitting behavior of a report object.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="../C1.Document/C1.Document.BordersSplitMode.html">BordersSplitMode</a></td>
      <td><span class="parametername">bordersSplitMode</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">size</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">nearOffset</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">farOffset</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">splitPosition</span></td>
      <td><p>OUT: contains corrected <a class="xref" href="C1.Report.Rendering.RequestedSplitPosition.Position.html">Position</a>.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">contentSplitPosition</span></td>
      <td><p>OUT: contains split position for content.</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>Returns false if object can not split at specified position.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
