ESRI.ArcGIS.ADF.Web.UI.WebControls
Toc Class
Members  See Also 
ESRI.ArcGIS.ADF.Web.UI.WebControls Namespace : Toc Class




Table of Contents: Used for rendering the layer/swatch information of the data sources in a Map.

Object Model





Syntax

Visual Basic (Declaration) 
<ToolboxDataAttribute("<{0}:Toc runat='server' Height='300px' Width='220px'></{0}:Toc>")>
<DefaultPropertyAttribute("BuddyControl")>
<DesignerAttribute(DesignerBaseTypeName="System.ComponentModel.Design.IDesigner, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", DesignerTypeName="ESRI.ArcGIS.ADF.Web.UI.WebControls.Design.TocDesigner, ESRI.ArcGIS.ADF.Web.UI.WebControls, Version=10.0.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86")>
Public Class Toc 
   Inherits TreeViewPlus
   Implements IBuddyControlSupportITreeViewPlusNodeContainer 
Visual Basic (Usage)Copy Code
Dim instance As Toc
C# 
[ToolboxDataAttribute("<{0}:Toc runat='server' Height='300px' Width='220px'></{0}:Toc>")]
[DefaultPropertyAttribute("BuddyControl")]
[DesignerAttribute(DesignerBaseTypeName="System.ComponentModel.Design.IDesigner, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", DesignerTypeName="ESRI.ArcGIS.ADF.Web.UI.WebControls.Design.TocDesigner, ESRI.ArcGIS.ADF.Web.UI.WebControls, Version=10.0.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86")]
public class Toc : TreeViewPlus, IBuddyControlSupportITreeViewPlusNodeContainer  

Remarks

The table of contents (Toc) control displays information about the resources and layers in an associated Map control. The Toc extends the TreeViewPlus, so that it displays resources and layers in a tree fashion. At the top of the tree are the services (resources) in the map (which are actually defined in the MapResourceManager associated with the Map). When a resource is expanded on the tree, the Toc displays the layers within the resource (service). And when the TocType is

SwatchList, individual layers may be expanded to display legend swatches and values.

Inheritance Hierarchy

System.Object
   System.Web.UI.Control
      System.Web.UI.WebControls.WebControl
         System.Web.UI.WebControls.CompositeControl
            ESRI.ArcGIS.ADF.Web.UI.WebControls.CompositeControl
               ESRI.ArcGIS.ADF.Web.UI.WebControls.TreeViewPlus
                  ESRI.ArcGIS.ADF.Web.UI.WebControls.Toc

See Also

© 2010 All Rights Reserved.