IVsIntellisenseHost::GetContextCaretPos Method (Int32, Int32)
Visual Studio 2015
Gets the caret position relative to the context buffer.
Assembly: Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)
Parameters
- piLine
-
Type:
System::Int32
[out] Length of the context buffer.
- piIndex
-
Type:
System::Int32
[out] Indicates the caret position index.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
C++
From singlefileeditor.idl:
HRESULT IVsIntellisenseHost::GetContextCaretPos([out] long *piLine, [out] long *piIndex);
Show: