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


ICompositeGraphicsLayer2 Interface (ArcObjects .NET 10.6 SDK)
ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IC > ICompositeGraphicsLayer2 Interface (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Carto)  

ICompositeGraphicsLayer2 Interface

Provides access to members that control a collection of graphics layers that behave like single layer.

Product Availability

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

Members

Name Description
Method Activate Prepare to display graphic on screen.
Method AddLayer Adds a layer to the composite graphics layer.
Read/write property AssociatedLayer Layer that is associated with this graphics layer.
Method Deactivate ActiveView that graphics are displayed on is no longer visible.
Method DeleteLayer Removes a layer from the composite graphics layer.
Method DrawDefault Draws the default graphics layer.
Method FindLayer Finds a layer in the composite graphics layer.
Read/write property UseAssociatedLayerVisibility Indicates if the layer that is associated with this graphics layer controls the visibility.

Inherited Interfaces

Interfaces Description
ICompositeGraphicsLayer Provides access to members that control a collection of graphics layers that behave like single layer.
IGraphicsLayer Provides access to members that control the Graphics Layer.

CoClasses that implement ICompositeGraphicsLayer2

CoClasses and Classes Description
CompositeGraphicsLayer A collection of graphics layers that behave like single layer.

Remarks

The purpose of the DrawDefault property of ICompositeGraphicsLayer2 is to draw only the default layer of the Composite Graphics Layer. If you subsequently add other layers to it using the ICompositeGraphicsLayer::AddLayer method they will not be drawn. However, every layer will draw if you call ILayer::Draw.