Skip to main content

RichEditDocumentServer.CommentInserted Event

Occurs after a new comment is created in the document.

Namespace: DevExpress.XtraRichEdit

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

NuGet Packages: DevExpress.RichEdit.Core, DevExpress.Win.Navigation

Declaration

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.

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