TX Text Control .NET Server

Number Property

Property|Introduced in 30.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 comment's number. The first comment in the document has the number 1. The number is defined through the textflow. Commented text with a smaller start position has a smaller comment number.

Syntax

public int Number { get; }

Examples

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

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);

Console.WriteLine($"Number: {commentedText.Number}");
Console.WriteLine("Commented Text is ready for use.");

Limitations

Read only.