次の方法で共有


IVsIntellisenseHost.SetContextCaretPos(Int32, Int32) Method

Definition

Sets the caret position relative to the context buffer.

public:
 int SetContextCaretPos(int iLine, int iIndex);
public:
 int SetContextCaretPos(int iLine, int iIndex);
int SetContextCaretPos(int iLine, int iIndex);
public int SetContextCaretPos (int iLine, int iIndex);
abstract member SetContextCaretPos : int * int -> int
Public Function SetContextCaretPos (iLine As Integer, iIndex As Integer) As Integer

Parameters

iLine
Int32

[in] Length of the context buffer.

iIndex
Int32

[in] 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::SetContextCaretPos([in] long iLine, [in] long iIndex);

Applies to