다음을 통해 공유


IVsIntellisenseHost.GetContextCaretPos(Int32, Int32) Method

Definition

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);

Applies to