ActiveReports.Viewer3 Request technical support
TableOfContents Property
See Also  Example


Gets a reference to the TableOfContentsObject.

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property TableOfContents As TableOfContentsObject
Visual Basic (Usage)Copy Code
Dim instance As Viewer
Dim value As TableOfContentsObject
 
value = instance.TableOfContents
C# 
public TableOfContentsObject TableOfContents {get;}

Return Value

A TableOfContentsObject value used to set the viewer's table of contents treeview options.

Example

C#Copy Code
private void arv_Load(object sender, System.EventArgs e)
{
   rptDD rpt =
new rptDD();
   rpt.Run();
   arv.Document = rpt.Document;
   
   arv.TableOfContents.Enabled = true;
   arv.TableOfContents.Text =
"Country";
   arv.TableOfContents.Visible = true;
   arv.TableOfContents.Width = 150;
}
Visual BasicCopy Code
Private Sub arv_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles arv.Load
    Dim rpt As New rptDD
    rpt.Run()
    arv.Document = rpt.Document

    arv.TableOfContents.Enabled = True
    arv.TableOfContents.Text = "Country"
    arv.TableOfContents.Visible = True
    arv.TableOfContents.Width = 150
End Sub

Remarks

This property is used to set the properties of the TableOfContents component of the control.

See Also