See Also

BookmarksCollection Class  | BookmarksCollection Members

Language

Visual Basic

C#

Show All

treeView
Specifies the TreeView control to be filled with the bookmark objects.
See Also Languages ActiveReports.Viewer Send feedback to Data Dynamics

FillTree Method

Loads the Bookmark objects into a Windows Forms TreeView control.

[Visual Basic]
Public Sub FillTree( _    ByVal treeView As TreeView _ )
[C#]
public void FillTree(    TreeView treeView );

Parameters

treeView
Specifies the TreeView control to be filled with the bookmark objects.

Remarks

You can use this method to fill any TreeView with the bookmarks collection and customize the look and feel of the Table of Contents.

Example

[C#] 

private void frmViewer_Load(object sender, System.EventArgs e) 

    arv.Toolbar.Tools.RemoveAt(0); 
    arv.Document.Bookmarks.FillTree(treeView1); 
}

[Visual Basic] 

Private Sub frmViewer_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
    arv.Toolbar.Tools.RemoveAt(0)
    arv.Document.Bookmarks.FillTree(TreeView1)
End Sub

See Also

BookmarksCollection Class  | BookmarksCollection Members

 

 


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