ArcObjects Library Reference  (Carto)    

ICompositeGraphicsLayer 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

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.

[Visual Basic 6.0]

The following example is a code excerpt that shows how to get a reference to an ICompositeGraphicsLayer interface with Visual Basic.

'This example assumes that you already have an IMap (pMap) set

' get ICompositeGraphicsLayer
  Dim pCompGraLyr As ICompositeGraphicsLayer
  Set pCompGraLyr = pMap.ActiveGraphicsLayer

See Also

IGraphicsLayer Interface

 


Feedback Send feedback on this page