ESRI.ArcGIS.ADF.Web.UI.WebControls
TocType Property
See Also 
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) 
<BrowsableAttribute(True)>
<ResDescriptionAttribute("Whether to display layer names only (LayerList) or layer names and legend swatches (SwatchList).")>
<ResCategoryAttribute("Appearance")>
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# 
[BrowsableAttribute(true)]
[ResDescriptionAttribute("Whether to display layer names only (LayerList) or layer names and legend swatches (SwatchList).")]
[ResCategoryAttribute("Appearance")]
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.

See Also

© 2010 All Rights Reserved.