TX Text Control .NET for Windows Forms

Number Property

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

Description

Gets the editable region's number. The first editable region has the number 1. The number is defined through the textflow. An editable region with a smaller start position has a smaller number.

Syntax

public int Number { get; }

Examples

The following example marks selected contract text as editable by the review team by using EditableRegion.Number.

textControl.Text = "Terms subject to legal review";
textControl.Select(0, textControl.Text.Length);
EditableRegion editableRegion = new("ReviewTeam", 10);
textControl.EditableRegions.Add(editableRegion);

Console.WriteLine($"Number: {editableRegion.Number}");
Console.WriteLine("Editable Region is ready for use.");

Limitations

Read only.