Back to Devexpress

NoteCollection.Remove(Note) Method

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-notecollection-dot-remove-x28-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-note-x29.md

latest4.1 KB
Original Source

NoteCollection.Remove(Note) Method

Removes the specific note from the collection.

Namespace : DevExpress.XtraRichEdit.API.Native

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
void Remove(
    Note note
)
vb
Sub Remove(
    note As Note
)

Parameters

NameTypeDescription
noteNote

A note to be removed from the collection.

|

Remarks

Use the NoteCollection.RemoveAt method to remove a note from the collection by its index.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Remove(Note) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-richedit-document-api/CS/RichEditAPISample/CodeExamples/Notes.cs#L128

csharp
if (document.Endnotes[i].IsCustom)
        document.Endnotes.Remove(document.Endnotes[i]);
}

wpf-richedit-document-api/CS/DXRichEditControlAPISample/CodeExamples/NotesActions.cs#L124

csharp
if (document.Endnotes[i].IsCustom)
        document.Endnotes.Remove(document.Endnotes[i]);
}

word-document-api-examples/CS/CodeExamples/NotesActions.cs#L159

csharp
if (document.Endnotes[i].IsCustom)
        document.Endnotes.Remove(document.Endnotes[i]);
}

winforms-richedit-document-api/VB/RichEditAPISample/CodeExamples/Notes.vb#L93

vb
For i As Integer = document.Endnotes.Count - 1 To 0 Step -1
    If document.Endnotes(CInt((i))).IsCustom Then document.Endnotes.Remove(document.Endnotes(i))
Next

wpf-richedit-document-api/VB/DXRichEditControlAPISample/CodeExamples/NotesActions.vb#L112

vb
If document.Endnotes(i).IsCustom Then
    document.Endnotes.Remove(document.Endnotes(i))
End If

word-document-api-examples/VB/CodeExamples/NotesActions.vb#L124

vb
For i As Integer = document.Endnotes.Count - 1 To 0 Step -1
    If document.Endnotes(CInt((i))).IsCustom Then document.Endnotes.Remove(document.Endnotes(i))
Next

See Also

NoteCollection Interface

NoteCollection Members

DevExpress.XtraRichEdit.API.Native Namespace