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


IMapLayers2.IsLayerVisibleEx Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Carto)  

IMapLayers2.IsLayerVisibleEx Method

Check if layer is visible.

[Visual Basic .NET]
Public Sub IsLayerVisibleEx ( _
    ByVal Layer As ILayer, _
    ByRef IsLayerVisible As Boolean, _
    ByRef isParentLayerVisible As Boolean _
)
[C#]
public void IsLayerVisibleEx (
    ILayer Layer,
    ref bool IsLayerVisible,
    ref bool isParentLayerVisible
);
[C++]
HRESULT IsLayerVisibleEx(
  ILayer* Layer,
  VARIANT_BOOL* IsLayerVisible,
  VARIANT_BOOL* isParentLayerVisible
);
[C++]

Parameters Layer [in]
Layer is a parameter of type ILayer IsLayerVisible [out] IsLayerVisible is a parameter of type VARIANT_BOOL isParentLayerVisible [out] isParentLayerVisible is a parameter of type VARIANT_BOOL

Product Availability

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

See Also

IMapLayers2 Interface