CommentedText Constructor
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesCore. dll
- Also in
TXTextControl.asTextControl. ASP. SDK 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);Public Sub New(comment As String)| Parameter | Description |
|---|---|
| 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);Public Sub New(comment As String, start As Integer, length As Integer)| Parameter | Description |
|---|---|
| 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);Public Sub New(comment As String, repliedComment As CommentedText)| Parameter | Description |
|---|---|
| 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;Dim commentedText As New CommentedText("Quarterly report")
commentedText.Active = True