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


IMapLayers.IsLayerVisible Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IM > IMapLayers Interface > IMapLayers.IsLayerVisible Method
ArcGIS Developer Help

IMapLayers.IsLayerVisible Method

Check if layer is visible.

[Visual Basic .NET]
Public Function IsLayerVisible ( _
    ByVal Layer As ILayer _
) As Boolean
[C#]
public bool IsLayerVisible (
    ILayer Layer
);
[C++]
HRESULT IsLayerVisible(
  ILayer* Layer
);
[C++]
Parameters
Layer [in]

Layer is a parameter of type ILayer*

Product Availability

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

Remarks

This method determines if a layer is actually visible in a map.  It does this by checking to see if the layer is not drawn due to scale ranges and also by validating whether or not the layer is in a composite layer or group layer that is not visible.

See Also

IMapLayers Interface