Partager via


IVsTextViewFilter.GetPairExtents Method

Returns the location of a matching pair item, given the location of the first item.

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

Syntax

'Declaration
Function GetPairExtents ( _
    iLine As Integer, _
    iIndex As Integer, _
    <OutAttribute> pSpan As TextSpan() _
) As Integer
int GetPairExtents(
    int iLine,
    int iIndex,
    TextSpan[] pSpan
)
int GetPairExtents(
    [InAttribute] int iLine, 
    [InAttribute] int iIndex, 
    [OutAttribute] array<TextSpan>^ pSpan
)
abstract GetPairExtents : 
        iLine:int * 
        iIndex:int * 
        pSpan:TextSpan[] byref -> int
function GetPairExtents(
    iLine : int, 
    iIndex : int, 
    pSpan : TextSpan[]
) : int

Parameters

  • iLine
    Type: System.Int32

    [in] Integer containing the line index of the first item in the pair.

  • iIndex
    Type: System.Int32

    [in] Integer containing the column index of the first item in the pair.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From textmgr.idl:

HRESULT IVsTextViewFilter::GetPairExtents(
   [in] long iLine,
   [in] CharIndex iIndex,
   [out] TextSpan * pSpan
);

.NET Framework Security

See Also

Reference

IVsTextViewFilter Interface

Microsoft.VisualStudio.TextManager.Interop Namespace