TX Text Control .NET for Windows Forms

AllowPageBreak Property

Property|Introduced in 12.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.dll from the private NuGet feed or Text Control Offline Packages

Description

Gets or sets a value specifying how the table row is formatted at page breaks. The property value is True, if the table row can be formatted across page breaks. The property value is False, if the table row must not be formatted across page breaks.

Syntax

public bool AllowPageBreak { get; set; }

Examples

The following example creates a small report table and works with its structure by using TableRow.AllowPageBreak.

textControl.Tables.Add(3, 3, 10);
Table table = textControl.Tables.GetItem(10);
TableRow tableRow = table.Rows[1];

tableRow.AllowPageBreak = false;
tableRow.Select();