ActiveReports 14 .NET Edition
GrapeCity.ActiveReports.Viewer.Win Assembly / GrapeCity.ActiveReports.Viewer.Win Namespace / Viewer Class / TableOfContents Property
Example

In This Topic
    TableOfContents Property (Viewer)
    In This Topic

    Gets or sets a reference to the TableOfContentsObject.

    Syntax
    'Declaration
     
    Public ReadOnly Property TableOfContents As TocPanel
    public TocPanel TableOfContents {get;}

    Property Value

    TableOfContentsObject value which is used in setting the tree view option of the Viewer's heading list.
    Remarks

    This property is used in setting the option of TableOfContentsObject component of the control.

    Example
    private void arv_Load(object sender, System.EventArgs e)
    {
        SectionReport1 rpt = new SectionReport1();
        rpt.Run();
        arv.Document = rpt.Document;
        
        arv.TableOfContents.Enabled = true;
        arv.TableOfContents.Text = "Country";
        arv.TableOfContents.Visible = true;
        arv.TableOfContents.Width = 150;
    }
    Private Sub arv_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles arv.Load
        Dim rpt As New SectionReport1
        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