ESRI.ArcGIS.ADF.Tasks
HiddenLayers Property
See Also 
ESRI.ArcGIS.ADF.Tasks Namespace > LegendItemSettings Class : HiddenLayers Property




Collection of layer names not to display in legend.

Syntax

Visual Basic (Declaration) 
<ResDescriptionAttribute("Map layers to hide from legend.")>
<NotifyParentPropertyAttribute(True)>
<EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="ESRI.ArcGIS.ADF.Tasks.ResourceListEditor, ESRI.ArcGIS.ADF.Tasks, Version=10.0.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86")>
<TypeConverterAttribute("ESRI.ArcGIS.ADF.Tasks.ResourceListConverter, ESRI.ArcGIS.ADF.Tasks, Version=10.0.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86")>
Public Property HiddenLayers As ResourceList
Visual Basic (Usage)Copy Code
Dim instance As LegendItemSettings
Dim value As ResourceList
 
instance.HiddenLayers = value
 
value = instance.HiddenLayers
C# 
[ResDescriptionAttribute("Map layers to hide from legend.")]
[NotifyParentPropertyAttribute(true)]
[EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="ESRI.ArcGIS.ADF.Tasks.ResourceListEditor, ESRI.ArcGIS.ADF.Tasks, Version=10.0.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86")]
[TypeConverterAttribute("ESRI.ArcGIS.ADF.Tasks.ResourceListConverter, ESRI.ArcGIS.ADF.Tasks, Version=10.0.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86")]
public ResourceList HiddenLayers {get; set;}

Remarks

This property enables hiding names of layers in the legend of the print task. This is useful when the map contains many visible layers, some of which may not be needed in the printed page.

The ResourceList class used for this property is a simple extension of the standard .NET List. You can add and remove items in the list as needed. Each item is the name of the layer (not necessarily the same as its ID).

See Also

© 2010 All Rights Reserved.