# C1.WPF.Excel.XLRow.PageBreak

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_Excel_XLRow_PageBreak_" data-uid="C1.WPF.Excel.XLRow.PageBreak*">PageBreak Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_Excel_XLRow_PageBreak_" data-uid="C1.WPF.Excel.XLRow.PageBreak*"></a>
<h4 id="C1_WPF_Excel_XLRow_PageBreak" data-uid="C1.WPF.Excel.XLRow.PageBreak">PageBreak</h4>
<div class="markdown level1 summary"><p>Gets or sets whether there will be a forced page break after this row.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool PageBreak { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property PageBreak As Boolean</code></pre>
</div>
<h5 id="C1_WPF_Excel_XLRow_PageBreak_examples">Examples</h5>
<p>The code below inserts forced page breaks at every 10th row on a sheet, and
clears the breaks at all other rows.</p>
<pre><code class="lang-csharp">C1.C1Excel.XLSheet sheet = c1XLBook1.Sheets[0];
for (int r = 0; r &lt; sheet.Rows.Count; r++)
{
    sheet.Rows[r].PageBreak = (r &gt; 0 &amp;&amp; r % 10 == 0);
}</code></pre>

</div>
