Editor for WinForms | ComponentOne
C1.Win.C1Editor.4.5.2 Assembly / C1.Win.C1Editor.UICustomization Namespace / Bookmarks Class / Item Property
The zero-based index of the bookmark to get.
Example

In This Topic
    Item Property
    In This Topic
    Gets the bookmark at the specified index.
    Syntax
    'Declaration
     
    Public ReadOnly Default Property Item( _
       ByVal index As System.Integer _
    ) As Bookmark
    public Bookmark this[ 
       System.int index
    ]; {get;}

    Parameters

    index
    The zero-based index of the bookmark to get.

    Property Value

    The bookmark at the specified index.
    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