Source::GetPairExtents Method (IVsTextView^, Int32, Int32, TextSpan)

 

Gets the span between a matching pair of language elements.

Namespace:   Microsoft.VisualStudio.Package
Assembly:  Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)

public:
virtual void GetPairExtents(
	IVsTextView^ textView,
	int line,
	int col,
	[OutAttribute] TextSpan% span
)

Parameters

textView
Type: Microsoft.VisualStudio.TextManager.Interop::IVsTextView^

The IVsTextView that contains the text that contains the matching language elements.

line
Type: System::Int32

The line number.

col
Type: System::Int32

The column number.

span
Type: Microsoft.VisualStudio.TextManager.Interop::TextSpan

[out] A TextSpan that contains the matching language elements.

If the location lies between two paired elements, the returned span starts at the starting element and ends with the closing element.

Return to top
Show: