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.
pSpan
Type: array<Microsoft.VisualStudio.TextManager.Interop.TextSpan[][out] Pointer to a text span that identifies the location of the second pair item.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.