Active Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets or sets a value specifying whether the comment is currently active or not. An inactive comment is not highlighted and is not retrieved through the CommentCollection.GetItem method. When the state changes from active to inactive or vise versa, a CommentStateChanged event occurs.
Syntax
public bool Active { get; set; }Public Property Active As BooleanExamples
The following example attaches a reviewer comment to selected contract text by using CommentedText.Active.
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);
commentedText.Active = true;
if (commentedText.Active)
{
Console.WriteLine("Commented Text: Active is enabled.");
}textControl.Text = "Payment is due within 30 days."
textControl.Select(0, textControl.Text.Length)
Dim commentedText As New CommentedText("Verify the payment term.")
textControl.Comments.Add(commentedText)
commentedText.Active = True
If commentedText.Active Then
Console.WriteLine("Commented Text: Active is enabled.")
End If