TX Text Control .NET Server

BreakKind Property

Property|Introduced in 14.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.Core.SDK as TXTextControl.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.dll

Description

Gets or sets the kind of the section break the section starts with. The property's value is a member of the SectionBreakKind enumeration.

Syntax

public SectionBreakKind BreakKind { get; set; }

Members

ValueDescription
BeginAtNewLineThe section begins on the next line with a new paragraph.
BeginAtNewPageThe section begins on the next page with a new paragraph.

Examples

The following example configures the layout of the first document section by using SectionFormat.BreakKind.

SectionFormat sectionFormat = textControl.Sections[1].Format;

sectionFormat.BreakKind = SectionBreakKind.BeginAtNewLine;
Console.WriteLine($"Break Kind used by Section Format: {sectionFormat.BreakKind}");

Remarks

The property's default value is SectionBreakKind.BeginAtNewPage.

The property returns its default value when the text selection contains multiple sections with mixed alignment. The Selection.IsCommonValueSelected method can be used to check for mixed attributes.