Provides access to members that control a collection of graphics layers that behave like single layer.
| Description | ||
|---|---|---|
![]() |
Activate | Prepare to display graphic on screen. |
![]() |
AddLayer | Adds a layer to the composite graphics layer. |
![]() |
AssociatedLayer | Layer that is associated with this graphics layer. |
![]() |
Deactivate | ActiveView that graphics are displayed on is no longer visible. |
![]() |
DeleteLayer | Removes a layer from the composite graphics layer. |
![]() |
FindLayer | Finds a layer in the composite graphics layer. |
![]() |
UseAssociatedLayerVisibility | Indicates if the layer that is associated with this graphics layer controls the visibility. |
| Interfaces | Description |
|---|---|
| IGraphicsLayer | Provides access to members that control the Graphics Layer. |
| CoClasses and Classes | Description |
|---|---|
| CompositeGraphicsLayer | A collection of graphics layers that behave like single layer. |
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.
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