ESRI.ArcGIS.ADF.IMS
VisibleInLegend Property
See Also  Send Feedback
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.

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.