Partager via


SVsTrackSelectionEx Interface

Definition

Passed to GetService(Type) to return a reference to IVsTrackSelectionEx.

public interface class SVsTrackSelectionEx
public interface class SVsTrackSelectionEx
__interface SVsTrackSelectionEx
[System.Runtime.InteropServices.ComVisible(false)]
[System.Runtime.InteropServices.Guid("18291FD1-A1DD-4264-AEAD-6AFD616BF15A")]
public interface SVsTrackSelectionEx
[<System.Runtime.InteropServices.ComVisible(false)>]
[<System.Runtime.InteropServices.Guid("18291FD1-A1DD-4264-AEAD-6AFD616BF15A")>]
type SVsTrackSelectionEx = interface
Public Interface SVsTrackSelectionEx
Attributes

Remarks

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.

Applies to