IVsTaskList2::GetCaretPos Method (IVsTaskItem^)
Visual Studio 2015
Returns the item that currently has the caret. This item is always among the selected items.
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
Parameters
- ppItem
-
Type:
Microsoft.VisualStudio.Shell.Interop::IVsTaskItem^
[out] A pointer to a pointer to an object of type IVsEnumTaskItems.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
If no item has the caret, this method will return NULL.
From vsshell80.idl:
HRESULT GetCaretPos( [out] IVsTaskItem** ppItem );
Show: