TX Text Control .NET Server

SectionFormat 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 page settings such as margins, size and orientation for the selected text. The property's value is an object of the type SectionFormat.

Syntax

public SectionFormat SectionFormat { get; set; }

Examples

The following example formats the heading of a short document by using Selection.SectionFormat.

textControl.Text = "Quarterly results\nRevenue increased by 12%.";
textControl.Select(0, 17);
Selection selection = textControl.Selection;

selection.SectionFormat = new SectionFormat();
if (selection.SectionFormat != null)
{
    Console.WriteLine("Selection: Section Format is available.");
}

Limitations

Runtime only.