IVsIntellisenseHost::GetContextLocation Method (Int32, Int32, Int32, array<RECT>^, Int32)

 

Gets the bounding rectangle for the IntelliSense context.

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

int GetContextLocation(
	int iPos,
	int iLen,
	int fUseCaretPosition,
	array<RECT>^ prc,
	[OutAttribute] int% piTopX
)

Parameters

iPos
Type: System::Int32

[in] The position of the context.

iLen
Type: System::Int32

[in] The length of the context.

fUseCaretPosition
Type: System::Int32

[in] Flag indicating that the context position is determined by the current caret position. True indicates use the current caret position.

prc
Type: array<Microsoft.VisualStudio.OLE.Interop::RECT>^

[out] The bounding rectangle for the IntelliSense context.

piTopX
Type: System::Int32

[out] The top line of the context.

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::GetContextLocation([in]long iPos, [in]long iLen, [in] bool fUseCaretPosition, [out]RECT *prc, [out]long *piTopX);

Return to top
Show: