Editor for WinForms | ComponentOne
C1.Win.C1Editor.4.8 Assembly / C1.Win.C1Editor.UICustomization Namespace / Bookmarks Class / Count Property
Example

In This Topic
    Count Property
    In This Topic
    Gets the number of bookmarks in the collection.
    Syntax
    'Declaration
     
    Public ReadOnly Property Count As System.Integer
    public System.int Count {get;}
    Example
    The code below checks if any bookmark has been deleted during editing in a custom bookmark dialog.
    private bool HaveDeletedBookmarks(XHTMLBookmarkItem item)
    {
        for (int i =item.Bookmarks.Count - 1; i >= 0; i--)
        if (item.Bookmarks[i].IsRemoved)
            return true;
        return false;
     }
    See Also