Back to Devexpress

RichEditDocumentServer.CommentInserted Event

officefileapi-devexpress-dot-xtrarichedit-dot-richeditdocumentserver-746671d9.md

latest2.2 KB
Original Source

RichEditDocumentServer.CommentInserted Event

Occurs after a new comment is created in the document.

Namespace : DevExpress.XtraRichEdit

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
public event CommentEditingEventHandler CommentInserted
vb
Public Event CommentInserted As CommentEditingEventHandler

Event Data

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

PropertyDescription
CommentProvides access to the comment to edit its properties and content.
CommentIndexGets 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

RichEditDocumentServer Class

RichEditDocumentServer Members

DevExpress.XtraRichEdit Namespace