Back to Devexpress

Note.IsCustom Property

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-note-4fad2d5f.md

latest4.2 KB
Original Source

Note.IsCustom Property

Gets whether to note has a custom reference mark.

Namespace : DevExpress.XtraRichEdit.API.Native

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
bool IsCustom { get; }
vb
ReadOnly Property IsCustom As Boolean

Property Value

TypeDescription
Boolean

true , if the note has custom reference mark; otherwise, false.

|

Remarks

Call the NoteCollection.Insert(DocumentPosition, String) method overload to insert a note with a custom reference mark. You cannot change an existing note’s reference mark.

The following code snippets (auto-collected from DevExpress Examples) contain references to the IsCustom property.

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#L127

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

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

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

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

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#L111

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

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

Note Interface

Note Members

DevExpress.XtraRichEdit.API.Native Namespace