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




Collection of layer names not to display in legend.

Syntax

Visual Basic (Declaration) 
<NotifyParentPropertyAttribute(True)>
<EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="ESRI.ArcGIS.ADF.Tasks.ResourceListEditor, ESRI.ArcGIS.ADF.Tasks, Version=10.1.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86")>
<TypeConverterAttribute("ESRI.ArcGIS.ADF.Tasks.ResourceListConverter, ESRI.ArcGIS.ADF.Tasks, Version=10.1.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86")>
<ResDescriptionAttribute("Map layers to hide from legend.")>
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# 
[NotifyParentPropertyAttribute(true)]
[EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="ESRI.ArcGIS.ADF.Tasks.ResourceListEditor, ESRI.ArcGIS.ADF.Tasks, Version=10.1.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86")]
[TypeConverterAttribute("ESRI.ArcGIS.ADF.Tasks.ResourceListConverter, ESRI.ArcGIS.ADF.Tasks, Version=10.1.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86")]
[ResDescriptionAttribute("Map layers to hide from legend.")]
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).

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.