Assembly: Microsoft.VisualStudio.Shell.Interop (in microsoft.visualstudio.shell.interop.dll)
[GuidAttribute("6D5140C5-7436-11CE-8034-00AA006009FA")] [GuidAttribute("6D5140C5-7436-11CE-8034-00AA006009FA")] public interface STrackSelection
/** @attribute GuidAttribute("6D5140C5-7436-11CE-8034-00AA006009FA") */ /** @attribute GuidAttribute("6D5140C5-7436-11CE-8034-00AA006009FA") */ public interface STrackSelection
VSPackages callwhen the current selection has changed and the Properties window must be updated to display its properties. With the call VSPackages pass in their interface pointer. ISelectionContainer provides access to one or more 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 anpointer for access to the current hierarchy, an item identifier (VSITEMID) indicating the current item, and an array of element values. VSPackages use the 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.