Partager via


IVsIntellisenseHost.SetSubjectCaretPos(Int32) Method

Definition

Sets the caret position relative to the text upon which IntelliSense operates.

public:
 int SetSubjectCaretPos(int iIndex);
public:
 int SetSubjectCaretPos(int iIndex);
int SetSubjectCaretPos(int iIndex);
public int SetSubjectCaretPos (int iIndex);
abstract member SetSubjectCaretPos : int -> int
Public Function SetSubjectCaretPos (iIndex As Integer) As Integer

Parameters

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

The subject text is considered to be the contents of the context buffer if GetHostFlags()_returns flags containing IHF_NOSEPARATESUBJECT and this method should return E_NOTIMPL.

C++

From singlefileeditor.idl:

HRESULT IVsIntellisenseHost::SetSubjectCaretPos([in] long iIndex);

Applies to