ActiveReports.Viewer3 Request technical support
FillTree Method
See Also  Example


treeView
Specifies the TreeView control to be filled with the bookmark objects.
Loads the Bookmark objects into a Windows Forms TreeView control.

Syntax

Visual Basic (Declaration) 
Public Sub FillTree( _
   ByVal treeView As TreeView _
) 
Visual Basic (Usage)Copy Code
Dim instance As BookmarksCollection
Dim treeView As TreeView
 
instance.FillTree(treeView)
C# 
public void FillTree( 
   TreeView treeView
)

Parameters

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

Example

C#Copy Code
private void frmViewer_Load(object sender, System.EventArgs e)
{
   arv.Toolbar.Tools.RemoveAt(0);
   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.Toolbar.Tools.RemoveAt(0)
    arv.Document.Bookmarks.FillTree(TreeView1)
End Sub

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.

See Also