Skip to main content
A newer version of this page is available.
All docs
V18.2

SubDocument.DeleteCustomMark(CustomMark) Method

OBSOLETE

This method has become obsolete. Use the 'Remove' method instead.

Delete specified custom mark from the document’s collection.

Namespace: DevExpress.XtraRichEdit.API.Native

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

Declaration

[Obsolete("This method has become obsolete. Use the 'DevExpress.XtraRichEdit.API.Native.CustomMarkCollection.Remove(CustomMark customMark)' method instead.")]
void DeleteCustomMark(
    CustomMark customMark
)

Parameters

Name Type Description
customMark CustomMark

A CustomMark object that marks a position in the document.

Remarks

Use the SubDocument.CustomMarks method to create a mark, add it to the SubDocument.CustomMarks collection and visualize it, by handling the RichEditControl.CustomMarkDraw event.

Note

A custom mark is linked to a certain text run, and moves with the content if a text is deleted or inserted before the marked position. It is not saved when the document is exported to any format, and you should provide a way to create it again when a document is loaded.

See Also