TX Text Control .NET Server

CommentedText Constructor

Constructor|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

Initializes a new instance of the CommentedText class.

Syntax

CommentedText(string)

Creates a CommentedText object with the specified comment string. The current text selection defines the commented text.

public CommentedText(string comment);
ParameterDescription
comment

Specifies a comment string.

CommentedText(string, int, int)

Creates a CommentedText object with the specified comment string and start position and length specifying the commented text.

public CommentedText(string comment, int start, int length);
ParameterDescription
comment

Specifies a comment string.

start

Specifies the index (one-based) of the commented text's first character.

length

Specifies the number of characters which belong to the commented text.

CommentedText(string, CommentedText)

Creates a CommentedText object with the specified comment string which is a reply to the specified comment.

public CommentedText(string comment, CommentedText repliedComment);
ParameterDescription
comment

Specifies a comment string.

repliedComment

The new comment is a reply to this comment.

Examples

The following example creates a Commented Text instance and configures its active setting for a document workflow.

CommentedText commentedText = new("Quarterly report");
commentedText.Active = true;