ESRI.ArcGIS.ADF.IMS
VisibleInLegend Property
See Also 
ESRI.ArcGIS.ADF.IMS.Carto.Layer Namespace > FeatureLayer Class : VisibleInLegend Property




Gets or sets a property to determine whether or not this layer shows in the legend.

Syntax

Visual Basic (Declaration) 
Public Property VisibleInLegend As Boolean
Visual Basic (Usage)Copy Code
Dim instance As FeatureLayer
Dim value As Boolean
 
instance.VisibleInLegend = value
 
value = instance.VisibleInLegend
C# 
public bool VisibleInLegend {get; set;}

Remarks

This property determines whether the layer name and symbol displays in a legend image for the map, if and when a legend is drawn. It does not affect the visibility of the layer in the map. By default, no legend draws when the map is drawn. To turn legend generation on or off, see MapView.RefreshLegend.

See Also

© 2010 All Rights Reserved.