ESRI.ArcGIS.ADF.Web.UI.WebControls
TocType Property
See Also  Send Feedback
ESRI.ArcGIS.ADF.Web.UI.WebControls Namespace > Toc Class : TocType Property




The Toc renders a layer list or a swatch list (along with the layer list) based on the TocType enum.

Syntax

Visual Basic (Declaration) 
<ResCategoryAttribute("Appearance")>
<ResDescriptionAttribute("Whether to display layer names only (LayerList) or layer names and legend swatches (SwatchList).")>
<BrowsableAttribute(True)>
Public Property TocType As TocType
Visual Basic (Usage)Copy Code
Dim instance As Toc
Dim value As TocType
 
instance.TocType = value
 
value = instance.TocType
C# 
[ResCategoryAttribute("Appearance")]
[ResDescriptionAttribute("Whether to display layer names only (LayerList) or layer names and legend swatches (SwatchList).")]
[BrowsableAttribute(true)]
public TocType TocType {get; set;}

Example

If the TocType is SwatchList, the Toc will display legend swatches (and values for layers with multiple symbols) when the user expands each layer. This is only true when the map resource supplies legend information. If the TocType is LayerList, only the layer names are displayed, with no legend swatches available.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2011 All Rights Reserved.