CommentEventArgs Class
- Namespace
TXTextControl
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. WPF. SDK
- Assembly
TXTextControl.dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. WPF. SDK TXTextControl.from the setup.dll
- Inherits
- Event
Args - Comment
Event Args
- Event
Description
The CommentEventArgs class provides data for the CommentCreated, CommentDeleted, CommentedTextEntered, CommentedTextLeft, CommentChanged and CommentStateChanged events. When a comment is deleted, the CommentedText object provided with the event data has the following valid properties: HighlightColor, HighlightMode, Comment, CreationTime, ID and UserName. All other properties are undefined.
Syntax
public class CommentEventArgs : EventArgsPublic Class CommentEventArgs
Inherits EventArgsExamples
The following example uses CommentEventArgs.CommentedText while handling CommentCreated.
textControl.CommentCreated += (_, e) =>
{
e.CommentedText?.ScrollTo();
};AddHandler textControl.CommentCreated,
Sub(sender, e)
If e.CommentedText IsNot Nothing Then e.CommentedText.ScrollTo()
End SubMembers
Properties
| Property | Description |
|---|---|
| CommentedText | Gets an object that represents the commented text. It is of the type CommentedText. |