Export (0) Print
Expand All

IVsTrackSelectionEx Interface

Notifies the environment of a change in the current selection and provides access to hierarchy and item information relating to the new selection.

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

[InterfaceTypeAttribute(1)] 
[GuidAttribute(L"18291FD1-A1DD-4264-AEAD-6AFD616BF15A")] 
public interface class IVsTrackSelectionEx : ITrackSelection
/** @attribute InterfaceTypeAttribute(1) */ 
/** @attribute GuidAttribute("18291FD1-A1DD-4264-AEAD-6AFD616BF15A") */ 
public interface IVsTrackSelectionEx extends ITrackSelection
InterfaceTypeAttribute(1) 
GuidAttribute("18291FD1-A1DD-4264-AEAD-6AFD616BF15A") 
public interface IVsTrackSelectionEx extends ITrackSelection

Project-type windows use IVsTrackSelectionEx to track changes to the active project. Such changes can include the current hierarchy, current project item, and element of selection. Project-type windows typically provide feedback to the user, possibly by highlighting a new item in the Solution Explorer window or changing the Visual Studio title bar.

Document and tool windows typically do not call IVsTrackSelectionEx because they track changes to selected objects only. These windows never alter the project hierarchy or item. See illustrations of the implementation and calling of this interface in the sample Figures Edit Sample.

Notes to Callers Components that populate the client area of a window call IVsTrackSelectionEx typically through the SVsTrackSelectionEx service to inform the environment of a change in selection within their window.

Community Additions

ADD
Show:
© 2014 Microsoft