TX Text Control .NET Server

ID Property

Property|Introduced in 25.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 editable region's identifier. It must be a one-based value. A value of zero indicates that the editable region has no identifier.

Syntax

public int ID { get; set; }

Examples

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

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

editableRegion.ID = 100;
Console.WriteLine($"ID used by Editable Region: {editableRegion.ID}");