Source.GetPairExtents Method (IVsTextView, Int32, Int32, TextSpan%)
Gets the span between a matching pair of language elements.
Namespace: Microsoft.VisualStudio.Package
Assemblies: Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Syntax
'Dichiarazione
Public Overridable Sub GetPairExtents ( _
textView As IVsTextView, _
line As Integer, _
col As Integer, _
<OutAttribute> ByRef span As TextSpan _
)
'Utilizzo
Dim instance As Source
Dim textView As IVsTextView
Dim line As Integer
Dim col As Integer
Dim span As TextSpan
instance.GetPairExtents(textView, line, _
col, span)
public virtual void GetPairExtents(
IVsTextView textView,
int line,
int col,
out TextSpan span
)
public:
virtual void GetPairExtents(
IVsTextView^ textView,
int line,
int col,
[OutAttribute] TextSpan% span
)
abstract GetPairExtents :
textView:IVsTextView *
line:int *
col:int *
span:TextSpan byref -> unit
override GetPairExtents :
textView:IVsTextView *
line:int *
col:int *
span:TextSpan byref -> unit
public function GetPairExtents(
textView : IVsTextView,
line : int,
col : int,
span : TextSpan
)
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.
Remarks
If the location lies between two paired elements, the returned span starts at the starting element and ends with the closing element.
.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.