This document is archived and information here might be outdated.  Recommended version.

IMapImage.VisibleLayers Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IM > IMapImage Interface > IMapImage.VisibleLayers Property
ArcGIS Developer Help

IMapImage.VisibleLayers Property

Array of the visible layers drawn for the generated map scale.

[Visual Basic .NET]
Public ReadOnly Property VisibleLayers As ILongArray
public ILongArray VisibleLayers {get;}
HRESULT get_VisibleLayers(
  ILongArray** layerIds
layerIds [out, retval]

layerIds is a parameter of type ILongArray**

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


VisibleLayers is defined by a combination of layer visibility in the TOC (i.e. is the layer "on"?) and layer visibility dependent on map scale. Scale dependency for a layer is set in the original map document. If the layer is scale dependent (i.e. a maximum and/or minimum scale has been set) and the map scale falls out of this range, layer visibility will be false. Do not confuse this property with the visibility property on ILayerDescription which is based solely on layer visibility in the TOC (is the layer "on" or "off"). The IMapImage interface inherits all IImageResult properties.

See Also

IMapImage Interface