The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
The page you are viewing does not exist in the .NET Standard 2.0+ platform documentation. This link will take you to the parent topic of the current section.
.NET Core 3.0+

SubDocument.DeleteCustomMark(CustomMark) Method

Obsolete. Delete specified custom mark from the document's collection.

Namespace: DevExpress.XtraRichEdit.API.Native

Assembly: DevExpress.RichEdit.v19.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
)
<Obsolete("This method has become obsolete. Use the 'DevExpress.XtraRichEdit.API.Native.CustomMarkCollection.Remove(CustomMark customMark)' method instead.")>
Sub DeleteCustomMark(
    customMark As CustomMark
)
[Obsolete("This method has become obsolete. Use the 'DevExpress.XtraRichEdit.API.Native.CustomMarkCollection.Remove(CustomMark customMark)' method instead.")]
void DeleteCustomMark(
    CustomMark customMark
)
<Obsolete("This method has become obsolete. Use the 'DevExpress.XtraRichEdit.API.Native.CustomMarkCollection.Remove(CustomMark customMark)' method instead.")>
Sub DeleteCustomMark(
    customMark As CustomMark
)

Parameters

Name Type Description
customMark CustomMark

A CustomMark object that marks a position in the document.

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