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


IGroupLayer Interface (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Carto)  

IGroupLayer Interface

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

Product Availability

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

Description

The IGroupLayer interface provides methods for managing the contents of GroupLayers. Use the ILayer interface to set properties for the GroupLayer, or use the appropriate interface to adjust properties of the constituent layers.

Members

Description
Method Add Adds a layer to the end of the group.
Read-only property AreaOfInterest The default area of interest for the layer.
Read/write property Cached Indicates if the layer needs its own display cache.
Method Clear Removes all layers from the group.
Method Delete Removes the specified layer from the group.
Method Draw Draws the layer to the specified display for the given draw phase.
Read/write property Expanded Indicates if the group's entry is expanded in the TOC.
Read/write property MaximumScale Maximum scale (representative fraction) at which the layer will display.
Read/write property MinimumScale Minimum scale (representative fraction) at which the layer will display.
Read/write property Name Layer name.
Read/write property ShowTips Indicates if the layer shows map tips.
Write-only property SpatialReference Spatial reference for the layer.
Read-only property SupportedDrawPhases Supported draw phases.
Read-only property TipText Map tip text at the specified location.
Read-only property Valid Indicates if the layer is currently valid.
Read/write property Visible Indicates if the layer is currently visible.

Inherited Interfaces

Interfaces Description
ILayer Provides access to members that work with all layers.

CoClasses that implement IGroupLayer

CoClasses and Classes Description
BasemapLayer Layer containing a Basemap.
GroupLayer A collection of layers that behaves like a single layer.

Remarks

A group layer is a special case of a composite layer.  Custom layer implementations of IGroupLayer are rarely needed, but when done it is importat to implement ICompositeLayer as well.

See Also

IGroupLayer Interface | GroupLayer Class | ICompositeLayer Interface

.NET Snippets

Set Group Layer Cache

.NET Samples

Add a traversal result to the map (Code Files: AddTraversalResultsToMap)

.NET Related Topics

Creating and working with basemap layers