IVsIntellisenseHost.GetContextLocation Method

Gets 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)

Syntax

'宣言
Function GetContextLocation ( _
    iPos As Integer, _
    iLen As Integer, _
    fUseCaretPosition As Integer, _
    <OutAttribute> prc As RECT(), _
    <OutAttribute> ByRef piTopX As Integer _
) As Integer
'使用
Dim instance As IVsIntellisenseHost
Dim iPos As Integer
Dim iLen As Integer
Dim fUseCaretPosition As Integer
Dim prc As RECT()
Dim piTopX As Integer
Dim returnValue As Integer

returnValue = instance.GetContextLocation(iPos, _
    iLen, fUseCaretPosition, prc, piTopX)
int GetContextLocation(
    int iPos,
    int iLen,
    int fUseCaretPosition,
    RECT[] prc,
    out int piTopX
)
int GetContextLocation(
    [InAttribute] int iPos, 
    [InAttribute] int iLen, 
    [InAttribute] int fUseCaretPosition, 
    [OutAttribute] array<RECT>^ prc, 
    [OutAttribute] int% piTopX
)
function GetContextLocation(
    iPos : int, 
    iLen : int, 
    fUseCaretPosition : int, 
    prc : RECT[], 
    piTopX : int
) : int

Parameters

  • iPos
    Type: System.Int32

    Gets bounding rectangle for the IntelliSense context.

  • iLen
    Type: System.Int32

    Gets bounding rectangle for the IntelliSense context.

  • fUseCaretPosition
    Type: System.Int32

    Gets bounding rectangle for the IntelliSense context.

  • prc
    Type: []

    Gets bounding rectangle for the IntelliSense context.

  • piTopX
    Type: System.Int32%

    Gets bounding rectangle for the IntelliSense context.

Return Value

Type: System.Int32

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

Remarks

C++

From singlefileeditor.idl:

HRESULT IVsIntellisenseHost::GetContextLocation([in]long iPos, [in]long iLen, [in] bool fUseCaretPosition, [out]RECT *prc, [out]long *piTopX);

Permissions

See Also

Reference

IVsIntellisenseHost Interface

IVsIntellisenseHost Members

Microsoft.VisualStudio.TextManager.Interop Namespace