Skip to main content
.NET Framework 4.5.2+

RichEditDocumentServer.CommentInserted Event

Occurs after a new comment is created in the document.

Namespace: DevExpress.XtraRichEdit

Assembly: DevExpress.RichEdit.v23.1.Core.dll

NuGet Package: DevExpress.RichEdit.Core


public event CommentEditingEventHandler CommentInserted

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.


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