CommentChanged Event
- Namespace
TXTextControl.WPF
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWPF. dll
Description
Occurs when the text of a comment has been altered. The event handler receives an argument of type CommentEventArgs containing data related to this event.
Syntax
public event CommentEventHandler CommentChanged;Public Event CommentChanged As CommentEventHandlerExamples
The following example records useful context when comment changed occurs.
textControl.CommentChanged += (sender, e) =>
{
Console.WriteLine($"Comment Changed at {DateTime.Now:u}");
};AddHandler textControl.CommentChanged,
Sub(sender, e)
Console.WriteLine($"Comment Changed at {DateTime.Now:u}")
End Sub