IVsIntellisenseHost.GetSubjectCaretPos(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 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);