IVsMonitorSelection2.GetEmptySelectionContext(IVsTrackSelectionEx) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Retrieves the empty selection context.
public:
int GetEmptySelectionContext([Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsTrackSelectionEx ^ % ppEmptySelCtxt);
public:
int GetEmptySelectionContext([Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsTrackSelectionEx ^ & ppEmptySelCtxt);
int GetEmptySelectionContext([Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsTrackSelectionEx const & & ppEmptySelCtxt);
public int GetEmptySelectionContext (out Microsoft.VisualStudio.Shell.Interop.IVsTrackSelectionEx ppEmptySelCtxt);
abstract member GetEmptySelectionContext : IVsTrackSelectionEx -> int
Public Function GetEmptySelectionContext (ByRef ppEmptySelCtxt As IVsTrackSelectionEx) As Integer
Parameters
- ppEmptySelCtxt
- IVsTrackSelectionEx
[out] The emply selection context.
Returns
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
The Empty Selection Context manages the selection when the integrated development environment (IDE) is empty, that is, when there are no other windows active. This selection context is always the first selection context activated. It can be used to push elements of selection (VSSELELEMID) that are globally maintained. Such global elements of selection should only be set using the EmptySelectionContext
object and should not be set on the IVsTrackSelectionEx interface associated with individual IVsWindowFrame objects.