com.esri.arcgis.carto
Interface ICompositeLayer2

All Superinterfaces:
Serializable
All Known Implementing Classes:
BasemapSubLayer, CadastralFabricLayer, FDOGraphicsLayer, GlobeServerLayer, ICompositeLayer2Proxy, IMSMapLayer, MapServerLayer, MosaicLayer, NALayer, SchematicLayer, WMSGroupLayer, WMSMapLayer

public interface ICompositeLayer2
extends Serializable

Provides access to members that control whether a layer is expanded in the TOC.

Description

ICompositeLayer2 provides an additional read/write Expanded property defining if the group layer is shown as expanded or not in the TOC.

Product Availability

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


Method Summary
 int getCount()
          Number of layers in the collection.
 ILayer getLayer(int index)
          Layer in the collection at the specified index.
 boolean isExpanded()
          Indicates if the layer is expanded in the TOC.
 void setExpanded(boolean expanded)
          Indicates if the layer is expanded in the TOC.
 

Method Detail

getCount

int getCount()
             throws IOException,
                    AutomationException
Number of layers in the collection.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Returns:
The layerCount
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getLayer

ILayer getLayer(int index)
                throws IOException,
                       AutomationException
Layer in the collection at the specified index.

Product Availability

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

Parameters:
index - The index (in)
Returns:
A reference to a com.esri.arcgis.carto.ILayer
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isExpanded

boolean isExpanded()
                   throws IOException,
                          AutomationException
Indicates if the layer is expanded in the TOC.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Returns:
The expanded
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setExpanded

void setExpanded(boolean expanded)
                 throws IOException,
                        AutomationException
Indicates if the layer is expanded in the TOC.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
expanded - The expanded (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.