See Also

TableOfContentsObject Class  | TableOfContentsObject Members

Language

Visual Basic

C#

Show All

See Also Languages ActiveReports.Viewer Send feedback to Data Dynamics

Clear Method

Clears the table of contents.

[Visual Basic]
Public Sub Clear()
[C#]
public void Clear();

Example

[C#] 

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 Basic] 

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

TableOfContentsObject Class  | TableOfContentsObject Members

 

 


Copyright © 2004-2005 Data Dynamics, Ltd. All rights reserved.