Condividi tramite


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() Initializes a new SelectionContainer object. The overload provides the ability to restrict user control over the SelectableObjects and SelectedObjects collections.
Public method SelectionContainer(Boolean, Boolean) Creates a new SelectionContainer object with the ability to restrict user control over the SelectableObjects and SelectedObjects collections.

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 attempt to free resources and perform other cleanup operations before the Object 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, array<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