IVsIntellisenseHost.GetContextCaretPos(Int32, Int32) 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.
Gets the caret position relative to the context buffer.
public:
int GetContextCaretPos([Runtime::InteropServices::Out] int % piLine, [Runtime::InteropServices::Out] int % piIndex);
int GetContextCaretPos([Runtime::InteropServices::Out] int & piLine, [Runtime::InteropServices::Out] int & piIndex);
public int GetContextCaretPos (out int piLine, out int piIndex);
abstract member GetContextCaretPos : int * int -> int
Public Function GetContextCaretPos (ByRef piLine As Integer, ByRef piIndex As Integer) As Integer
Parameters
- piLine
- Int32
[out] Length of the context buffer.
- piIndex
- Int32
[out] Indicates the caret position index.
Returns
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
C++
From singlefileeditor.idl:
HRESULT IVsIntellisenseHost::GetContextCaretPos([out] long *piLine, [out] long *piIndex);