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


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

ICompositeGraphicsLayer Interface

Provides access to members that control a collection of graphics layers that behave like single layer. Note: the ICompositeGraphicsLayer interface has been superseded byICompositeGraphicsLayer2. Please consider using the more recent version.

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 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
IGraphicsLayer Provides access to members that control the Graphics Layer.

CoClasses that implement ICompositeGraphicsLayer

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

Remarks

A CompositeGraphicsLayer manages a collection of graphics layers.

An example of a composite graphics layer is the Map�s basic graphics layer accessed through IMap::BasciGraphicsLayer. It is both a graphics layer on which to draw and a composite graphics layer which contains all the map's graphic layer. The Map�s basic graphics layer cannot be deleted from the CompositeGraphicsLayer object. Get a reference to the map's basic graphics layer throught the ICompositeGraphicsLayer interface to manage the layer it contains. This way, graphics layers can be added to or deleted from the map.

The ICompositeGraphicsLayer interface inherits from the IGraphicsLayer interface.

See Also

IGraphicsLayer Interface

.NET Related Topics

How to add different types of layers to a map