TX Text Control .NET for Windows Forms

ID Property

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

Description

Gets or sets a user-defined identifier. It must be a one-based value. A value of zero indicates that the comment has no identifier.

Syntax

public int ID { get; set; }

Examples

The following example attaches a reviewer comment to selected contract text by using CommentedText.ID.

textControl.Text = "Payment is due within 30 days.";
textControl.Select(0, textControl.Text.Length);
CommentedText commentedText = new("Verify the payment term.");
textControl.Comments.Add(commentedText);

commentedText.ID = 100;
Console.WriteLine($"ID used by Commented Text: {commentedText.ID}");