IVsIntellisenseHost::GetContextCaretPos Method (Int32, Int32)

 

Gets the caret position relative to the context buffer.

Namespace:   Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)

int GetContextCaretPos(
	[OutAttribute] int% piLine,
	[OutAttribute] int% piIndex
)

Parameters

piLine
Type: System::Int32

[out] Length of the context buffer.

piIndex
Type: System::Int32

[out] Indicates the caret position index.

Return Value

Type: System::Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

C++

From singlefileeditor.idl:

HRESULT IVsIntellisenseHost::GetContextCaretPos([out] long *piLine, [out] long *piIndex);

Return to top
Show: