ActiveReports 6 Online Help
Clear Method (TableOfContentsObject)
Example 

Clears the table of contents.
Syntax
'Declaration
 
Public Sub Clear() 
public void Clear()
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
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

TableOfContentsObject Class
TableOfContentsObject Members

Send Feedback