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

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

Glossary Item Box

Loads the Bookmark objects into the Windows Forms TreeView control.

Syntax

Visual Basic (Declaration) 
Public Sub FillTree( _
   ByVal treeView As System.Windows.Forms.TreeView _
) 
C# 
public void FillTree( 
   System.Windows.Forms.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#Copy Code
private void frmViewer_Load(object sender, System.EventArgs e)
{
   arv.Document.Bookmarks.FillTree(treeView1);
}
Visual BasicCopy Code
Private Sub frmViewer_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
    arv.Document.Bookmarks.FillTree(TreeView1)
End Sub

See Also