ActiveReports 12
Count Property (BookmarksCollection)
Example 

GrapeCity.ActiveReports.Document.v12 Assembly > GrapeCity.ActiveReports.Document.Section Namespace > BookmarksCollection Class : Count Property
Gets the number of Bookmark objects in the collection.
Syntax
'Declaration
 
Public ReadOnly Property Count As Integer
public int Count {get;}

Property Value

The number of elements contained in the System.Collections.CollectionBase instance.Retrieving the value of this property is an O(1) operation.
Example
private void btnClearTOC_Click(object sender, System.EventArgs e)
{
    MessageBox.Show ("Clearing " + arv.Document.Bookmarks.Count.ToString() + " bookmarks.");
    arv.Document.Bookmarks.Clear();
    arv.TableOfContents.Clear();
}
Private Sub btnClearTOC_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnClearTOC.Click
    MsgBox("Clearing " & arv.Document.Bookmarks.Count.ToString & " bookmarks.")
    arv.Document.Bookmarks.Clear()
    arv.TableOfContents.Clear()
End Sub
See Also

Reference

BookmarksCollection Class
BookmarksCollection Members