officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-notecollection-dot-remove-x28-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-note-x29.md
Removes the specific note from the collection.
Namespace : DevExpress.XtraRichEdit.API.Native
Assembly : DevExpress.RichEdit.v25.2.Core.dll
NuGet Package : DevExpress.RichEdit.Core
void Remove(
Note note
)
Sub Remove(
note As Note
)
| Name | Type | Description |
|---|---|---|
| note | Note |
A note to be removed from the collection.
|
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
if (document.Endnotes[i].IsCustom)
document.Endnotes.Remove(document.Endnotes[i]);
}
wpf-richedit-document-api/CS/DXRichEditControlAPISample/CodeExamples/NotesActions.cs#L124
if (document.Endnotes[i].IsCustom)
document.Endnotes.Remove(document.Endnotes[i]);
}
word-document-api-examples/CS/CodeExamples/NotesActions.cs#L159
if (document.Endnotes[i].IsCustom)
document.Endnotes.Remove(document.Endnotes[i]);
}
winforms-richedit-document-api/VB/RichEditAPISample/CodeExamples/Notes.vb#L93
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
If document.Endnotes(i).IsCustom Then
document.Endnotes.Remove(document.Endnotes(i))
End If
word-document-api-examples/VB/CodeExamples/NotesActions.vb#L124
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