ArcObjects Library Reference (Carto)  

IGraphicsContainerSelect Interface

Provides access to members that control graphic container selection.

Product Availability

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

Members

Description
Read/write property DominantElement Dominant element.
Method ElementSelected Indicates if the element is selected.
Read-only property ElementSelectionCount The number of selected elements.
Method SelectAllElements Selects all elements.
Method SelectedElement Returns the nth selected element. Use Selection count to get the number of selected elements.
Read-only property SelectedElements The selected elements.
Method SelectElement Selects the specified element.
Method SelectElements Selects the specified elements.
Read-only property SelectionBounds The bounds of the selection.
Method SelectionTracker Returns the tracker for the nth selected element. Use Selection count to get the number of selected elements.
Method UnselectAllElements Unselects all elements.
Method UnselectElement Unselects the specified element.
Method UnselectElements Unselects the specified elements.

CoClasses that implement IGraphicsContainerSelect

CoClasses and Classes Description
CompositeGraphicsLayer A collection of graphics layers that behave like single layer.
FDOGraphicsLayer A collection of properties for an annotation layer (feature data object graphics layer).
Map A container for the display and manipulation of map data.
PageLayout Page Layout class contains maps and map surrounds.

Remarks

Most objects which are considered graphics containers, the PageLayout and Map objects for example, implement the IGraphicsContainerSelect interface to expose additional members for managing their element selection.

For example, use IGraphicsContainerSelect::UnselectAllElements to clear an object's graphic element selection.

See Also

IGraphicsContainer Interface | IGraphicsContainerSelect Interface | IActiveView.Selection Property | IEnumElement Interface

.NET Samples

Brushing to create a selection (Code Files: BrushingVB) | Move a graphic along a path in ArcMap (Code Files: cmdMoveGraphicAlongPath MapGraphicKeyframe)

.NET Related Topics

Working with PageLayout elements