Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2008
Visual Studio
Visual Studio SDK
 STrackSelection Interface
Collapse All/Expand All Collapse All
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
Visual Studio SDK
STrackSelection Interface

Passed to GetService to return a reference to ITrackSelection.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Visual Basic (Declaration)
<ComVisibleAttribute(False)> _
<GuidAttribute("6D5140C5-7436-11CE-8034-00AA006009FA")> _
<GuidAttribute("6D5140C5-7436-11CE-8034-00AA006009FA")> _
Public Interface STrackSelection
Visual Basic (Usage)
Dim instance As STrackSelection
C#
[ComVisibleAttribute(false)]
[GuidAttribute("6D5140C5-7436-11CE-8034-00AA006009FA")]
[GuidAttribute("6D5140C5-7436-11CE-8034-00AA006009FA")]
public interface STrackSelection
Visual C++
[ComVisibleAttribute(false)]
[GuidAttribute(L"6D5140C5-7436-11CE-8034-00AA006009FA")]
[GuidAttribute(L"6D5140C5-7436-11CE-8034-00AA006009FA")]
public interface class STrackSelection
JScript
public interface STrackSelection

VSPackages call OnSelectChange when the current selection has changed and the Properties window must be updated to display its properties. With the call VSPackages pass in their ISelectionContainer interface pointer. ISelectionContainer provides access to one or more IDispatch objects that the environment uses to update the Properties window.

The ISelectionContainer pointer is one part of the selection context that the environment maintains for every window. The selection context also includes an IVsHierarchy pointer for access to the current hierarchy, an item identifier (VSITEMID) indicating the current item, and an array of element values. VSPackages use the SVsTrackSelectionEx service to report changes to these other selection context items.

The SID for this service is SID_STrackSelection.

Editors and designers that only need to change the ISelectionContainer for the property browser should use STrackSelection. Windows, like the Solution Explorer, that change the active Hierarchy/itemid need to use SVsTrackSelectionEx.

© 2010 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker