Gets the number of bookmarks in the collection.

Namespace:  C1.Win.XmlEditor.UICustomization
Assembly:  C1.Win.XmlEditor.2 (in C1.Win.XmlEditor.2.dll)

Syntax

C#
public int Count { get; }
Visual Basic (Declaration)
Public ReadOnly Property Count As Integer

Examples

The code below checks if any bookmark has been deleted during editing in a custom bookmark dialog.
Copy CodeC#
privatebool HaveDeletedBookmarks(XHTMLBookmarkItem item)
{
    for (int i =item.Bookmarks.Count - 1; i >= 0; i--)
    if (item.Bookmarks[i].IsRemoved)
        returntrue;
    returnfalse;
 }

See Also