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


ILayerVisible.LayerVisible Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Display > ESRI.ArcGIS.Display > Interfaces > IL > ILayerVisible Interface > ILayerVisible.LayerVisible Property
ArcGIS Developer Help

ILayerVisible.LayerVisible Property

Indicates if the layer at the specified index is visible.

[Visual Basic .NET]
Public Function get_LayerVisible ( _
    ByVal layerIndex As Integer _
) As Boolean
[Visual Basic .NET]
Public Sub set_LayerVisible ( _
    ByVal layerIndex As Integer, _
    ByVal visible As Boolean _
)
[C#]
public bool get_LayerVisible (
    int layerIndex
);
[C#]
public void set_LayerVisible (
    int layerIndex,
    bool visible
);
[C++]
HRESULT get_LayerVisible(
  long layerIndex,
  Boolean* visible
);
[C++]
HRESULT put_LayerVisible(
  long layerIndex,
  VARIANT_BOOL visible
);
[C++]
Parameters
layerIndex [in]

layerIndex is a parameter of type long visible [out, retval]
visible is a parameter of type bool* layerIndex [in]
layerIndex is a parameter of type long visible [in]
visible is a parameter of type bool

Product Availability

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

Description

LayerVisible indicates whether a specefic layer of a MultiLayerFillSymbol, MultiLayerMarkerSymbol or MultiLayerLineSymbol will be displayed when the symbol is rendered.

See Also

ILayerVisible Interface