ActiveReports.Viewer3 Request technical support
Visible Property
See Also  Example


Gets or sets a value that determines whether the viewer's table of contents tree is visible.

Syntax

Visual Basic (Declaration) 
Public Property Visible As Boolean
Visual Basic (Usage)Copy Code
Dim instance As TableOfContentsObject
Dim value As Boolean
 
instance.Visible = value
 
value = instance.Visible
C# 
public bool Visible {get; set;}

Return Value

A Boolean value. True when the table of contents tree is visible; otherwise, False.  The default value is True.

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

See Also