CommentStateChanged Event
- Namespace
TXTextControl.ServerVisualisation
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesServer. Core. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXTextControl.Server. dll
Description
Occurs when the state of a comment alters from active to inactive or vice versa. A piece of text with an inactive comment is not highlighted and is not retrieved through the CommentCollection.GetItem method. The event handler receives an argument of type CommentEventArgs containing data related to this event.
Syntax
public event CommentEventHandler CommentStateChanged;Public Event CommentStateChanged As CommentEventHandlerExamples
The following example records useful context when comment state changed occurs.
textViewGenerator.CommentStateChanged += (sender, e) =>
{
Console.WriteLine($"Comment State Changed at {DateTime.Now:u}");
};AddHandler textViewGenerator.CommentStateChanged,
Sub(sender, e)
Console.WriteLine($"Comment State Changed at {DateTime.Now:u}")
End Sub