IVsIntellisenseHost.GetSubjectCaretPos(Int32) Method

Definition

Gets the caret position for the text upon which IntelliSense operates.

public:
 int GetSubjectCaretPos([Runtime::InteropServices::Out] int % piIndex);
int GetSubjectCaretPos([Runtime::InteropServices::Out] int & piIndex);
public int GetSubjectCaretPos (out int piIndex);
abstract member GetSubjectCaretPos : int -> int
Public Function GetSubjectCaretPos (ByRef piIndex As Integer) As Integer

Parameters

piIndex
Int32

[out] The index of the caret position.

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::GetSubjectCaretPos([out] long *piIndex);

Applies to