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)
Syntax
‘선언
<GuidAttribute("18291FD1-A1DD-4264-AEAD-6AFD616BF15A")> _
<GuidAttribute("18291FD1-A1DD-4264-AEAD-6AFD616BF15A")> _
Public Interface SVsTrackSelectionEx
‘사용 방법
Dim instance As SVsTrackSelectionEx
[GuidAttribute("18291FD1-A1DD-4264-AEAD-6AFD616BF15A")]
[GuidAttribute("18291FD1-A1DD-4264-AEAD-6AFD616BF15A")]
public interface SVsTrackSelectionEx
[GuidAttribute(L"18291FD1-A1DD-4264-AEAD-6AFD616BF15A")]
[GuidAttribute(L"18291FD1-A1DD-4264-AEAD-6AFD616BF15A")]
public interface class SVsTrackSelectionEx
public interface SVsTrackSelectionEx
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.