ESRI.ArcGIS.ADF.Web.UI.WebControls
ShowLayerCheckBoxes Property
See Also 
ESRI.ArcGIS.ADF.Web.UI.WebControls Namespace > Toc Class : ShowLayerCheckBoxes Property




Whether to display check-boxes for each layer in the map, which enables users to turn layers on and off.

Syntax

Visual Basic (Declaration) 
<NotifyParentPropertyAttribute(True)>
<DefaultValueAttribute()>
<ResCategoryAttribute("Toc")>
<ResDescriptionAttribute("Whether to show layer check boxes")>
<PersistenceModeAttribute()>
Public Property ShowLayerCheckBoxes As Boolean
Visual Basic (Usage)Copy Code
Dim instance As Toc
Dim value As Boolean
 
instance.ShowLayerCheckBoxes = value
 
value = instance.ShowLayerCheckBoxes
C# 
[NotifyParentPropertyAttribute(true)]
[DefaultValueAttribute()]
[ResCategoryAttribute("Toc")]
[ResDescriptionAttribute("Whether to show layer check boxes")]
[PersistenceModeAttribute()]
public bool ShowLayerCheckBoxes {get; set;}

Remarks

By default, a check-box is displayed next to each layer in the map. This allows the end user to turn the layer off and on. If this property is set to false, no check-boxes display next to layers, and the user cannot toggle visibility of layers. Any changes to visibility of layers would have to be handled programmatically.

See Also

© 2010 All Rights Reserved.