.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

CommentCollection.Remove(Comment) Method

Removes the specified comment from the collection.

Namespace: DevExpress.XtraRichEdit.API.Native

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

Declaration

void Remove(
    Comment comment
)
Sub Remove(
    comment As Comment
)
void Remove(
    Comment comment
)
Sub Remove(
    comment As Comment
)
void Remove(
    Comment comment
)
Sub Remove(
    comment As Comment
)

Parameters

Name Type Description
comment Comment

A Comment object to remove from the collection.

Parameters

Name Type Description
comment Comment

A Comment object to remove from the collection.

Parameters

Name Type Description
comment Comment

A Comment object to remove from the collection.

Examples

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