ActiveReports Developer 7
Clear Method
See Also  Example
GrapeCity.ActiveReports.Document.v7 Assembly > GrapeCity.ActiveReports.Document.Section Namespace > BookmarksCollection Class : Clear Method

Glossary Item Box

Removes all bookmarks from the collection.

Syntax

Visual Basic (Declaration) 
Public Shadows Sub Clear() 
C# 
public new void Clear()

Example

C#Copy Code
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();
}
Visual BasicCopy Code
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