Section Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
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; }Public ReadOnly Property Section As IntegerExamples
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.");textControl.Text = "Project summary"
Dim inputPosition As InputPosition = textControl.InputPosition
Console.WriteLine($"Section: {inputPosition.Section}")
Console.WriteLine("Input Position is ready for use.")Limitations
Read only.