TX Text Control .NET Server

Section 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 the section number of the current text input position. The first section in the document has the number 1.

Syntax

public int Section { get; }

Examples

The following example examines or changes the insertion point in a short document by using InputPosition.Section.

textControl.Text = "Project summary";
InputPosition inputPosition = textControl.InputPosition;

Console.WriteLine($"Section: {inputPosition.Section}");
Console.WriteLine("Input Position is ready for use.");

Limitations

Read only.