This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IM > IMapImage Interface > IMapImage.VisibleLayers Property (ArcObjects .NET 10.4 SDK) |
Array of the visible layers drawn for the generated map scale.
[Visual Basic .NET] Public ReadOnly Property VisibleLayers As ILongArray
[C#] public ILongArray VisibleLayers {get;}
[C++]
HRESULT get_VisibleLayers(
ILongArray** layerIds
);
[C++]
Parameters layerIds [out, retval]
layerIds is a parameter of type ILongArray
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.