Comments Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets a collection of all comments in the text frame. The property's value is an object of the type CommentCollection.
Syntax
public CommentCollection Comments { get; }Public ReadOnly Property Comments As CommentCollectionExamples
The following example applies bold formatting through the text frame's selection by using TextFrame.Comments.
Selection formattedSelection = textFrame.Selection;
formattedSelection.Bold = true;
textFrame.Selection = formattedSelection;
foreach (CommentedText commentedText in textFrame.Comments)
{
Console.WriteLine(commentedText.Active);
}Dim formattedSelection As Selection = textFrame.Selection
formattedSelection.Bold = True
textFrame.Selection = formattedSelection
For Each commentedText As CommentedText In textFrame.Comments
Console.WriteLine(commentedText.Active)
NextLimitations
Read only.