IVsTextViewFilter::GetPairExtents Method (Int32, Int32, array<TextSpan>^)

 

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)

int GetPairExtents(
	int iLine,
	int iIndex,
	array<TextSpan>^ pSpan
)

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.

From textmgr.idl:

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