.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

RichEditDocumentServer.CommentInserted Event

Occurs after a new comment is created in the document.

Namespace: DevExpress.XtraRichEdit

Assembly: DevExpress.RichEdit.v20.2.Core.dll

Declaration

public event CommentEditingEventHandler CommentInserted
Public Event CommentInserted As CommentEditingEventHandler

Event Data

The CommentInserted event's data class is CommentEditingEventArgs. The following properties provide information specific to this event:

Property Description
Comment Provides access to the comment to edit its properties and content.
CommentIndex Gets the index of a comment in the CommentCollection collection of comments in a document.

Remarks

The CommentInserted event allows you to obtain a newly created comment and modify its properties and content.

To change the content of a comment, obtain its SubDocument using the Comment.BeginUpdate method, apply required changes and finalize the modification by calling the Comment.EndUpdate method.

See Also