TX Text Control .NET for Windows Forms

Comments Property

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

Description

Gets a collection of all comments contained in the text part with the input focus. The property's value is an object of the type CommentCollection.

Syntax

public CommentCollection Comments { get; }

Examples

The following example iterates through the comments collection and processes each commented text.

foreach (CommentedText commentedText in textControl.Comments)
{
    Console.WriteLine(commentedText.Active);
}

Limitations

Read only.