SVsTrackSelectionEx Interface
TOC
Collapse the table of content
Expand the table of content
This documentation is archived and is not being maintained.

SVsTrackSelectionEx Interface

Passed to GetService to return a reference to IVsTrackSelectionEx.

Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in microsoft.visualstudio.shell.interop.dll)

[GuidAttribute(L"18291FD1-A1DD-4264-AEAD-6AFD616BF15A")] 
[GuidAttribute(L"18291FD1-A1DD-4264-AEAD-6AFD616BF15A")] 
public interface class SVsTrackSelectionEx
/** @attribute GuidAttribute("18291FD1-A1DD-4264-AEAD-6AFD616BF15A") */ 
/** @attribute GuidAttribute("18291FD1-A1DD-4264-AEAD-6AFD616BF15A") */ 
public interface SVsTrackSelectionEx
GuidAttribute("18291FD1-A1DD-4264-AEAD-6AFD616BF15A") 
GuidAttribute("18291FD1-A1DD-4264-AEAD-6AFD616BF15A") 
public interface SVsTrackSelectionEx

VSPackages can call either OnSelectChangeEx or OnSelectChange when the property data of the current selection has changed and the Properties window must be updated. If the hierarchy or item has also changed requiring an update to the Solution Explorer, VSPackages must call OnSelectChange.

VSPackages call IVsTrackSelectionEx::OnElementValueChange to report changes to an element value.

The SVsTrackSelectionEx service allows VSPackages and the environment to communicate about all parts of the selection context, a collection of values that the environment maintains for every window. The selection context includes:

  • An IVsHierarchy pointer for access to the current hierarchy

  • An item identifier (VSITEMID) indicating the current item

  • An ISelectionContainer pointer for access to property data

  • An array of element values

Editors or 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.

Show:
© 2016 Microsoft