Share via


SelectionContainer Members

Include Protected Members
Include Inherited Members

Provides a unified interface for accessing a set of selected objects.

The SelectionContainer type exposes the following members.

Constructors

 

Name

Description

Public method

SelectionContainer

Overloaded. This constructor initializes a new SelectionContainer object on creation.

Top

Methods

 

Name

Description

Protected method

ActivateObjects

Overriding this method enables an object to respond when selected.

Public method

Equals

Determines whether the specified Object is equal to the current Object. (Inherited from Object.)

Protected method

Finalize

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)

Public method

GetHashCode

Serves as a hash function for a particular type. (Inherited from Object.)

Public method

GetType

Gets the type of the current instance. (Inherited from Object.)

Protected method

MemberwiseClone

Creates a shallow copy of the current Object. (Inherited from Object.)

Public method

ToString

Returns a string that represents the current object. (Inherited from Object.)

Top

Fields

 

Name

Description

Public fieldStatic member

ALL

Refers to all SelectableObjects.

Public fieldStatic member

SELECTED

Refers to all SelectedObjects.

Top

Properties

 

Name

Description

Public property

SelectableObjects

Gets the collection of selectable objects.

Public property

SelectedObjects

Gets or sets the collection of selected objects.

Top

Events

 

Name

Description

Public event

SelectedObjectsChanged

Raised when an external object calls the SelectObjects(UInt32, Object, UInt32) method with the SELECTED flag set.

Top

Explicit Interface Implementations

 

Name

Description

Explicit interface implemetationPrivate method

ISelectionContainer.CountObjects

Determines the number of objects either those SELECTED or ALL items.

Explicit interface implemetationPrivate method

ISelectionContainer.GetObjects

Sets cObjects with the number of items SELECTED or ALL items and populates array apUnkObjects with pointers to those objects.

Explicit interface implemetationPrivate method

ISelectionContainer.SelectObjects

Sets the collection of selectable objects.

Top

See Also

Reference

SelectionContainer Class

Microsoft.VisualStudio.Shell Namespace