IVsFindTarget::GetCurrentSpan Method (array<TextSpan>^)
Visual Studio 2015
Returns the coordinates or the caret position of the current selection.
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Parameters
- pts
-
Type:
array<Microsoft.VisualStudio.TextManager.Interop::TextSpan>^
[out] Specifies the current caret position or highlighted selection.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From textmgr.idl:
HRESULT IVsFindTarget::GetCurrentSpan( [out, retval] TextSpan * pts );
Return the current caret position or the start and end positions of the highlighted selection. Place the position information in a TextSpan structure. For caret position, the start and end positions should be the same.
Show: