Skip to main content

CommentCollection.Remove(Comment) Method

Removes the specified comment from the collection.

Namespace: DevExpress.XtraRichEdit.API.Native

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

NuGet Package: DevExpress.RichEdit.Core

Declaration

void Remove(
    Comment comment
)

Parameters

Name Type Description
comment Comment

A Comment object to remove from the collection.

Example

View Example

Document document = server.Document;
document.LoadDocument("Documents\\Grimm.docx", DocumentFormat.Docx);
if (document.Comments.Count > 0)
{
    document.Comments.Remove(document.Comments[0]);
}
See Also