Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the text spans for a matching pair (or triplet) of language elements.
Namespace: Microsoft.VisualStudio.Package
Assemblies: Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.0.dll)
Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Syntax
'Declaration
Public Overridable Function GetPairExtents ( _
textView As IVsTextView, _
line As Integer, _
col As Integer, _
<OutAttribute> ByRef startBraceSpan As TextSpan, _
<OutAttribute> ByRef endBraceSpan As TextSpan _
) As Boolean
public virtual bool GetPairExtents(
IVsTextView textView,
int line,
int col,
out TextSpan startBraceSpan,
out TextSpan endBraceSpan
)
public:
virtual bool GetPairExtents(
IVsTextView^ textView,
int line,
int col,
[OutAttribute] TextSpan% startBraceSpan,
[OutAttribute] TextSpan% endBraceSpan
)
abstract GetPairExtents :
textView:IVsTextView *
line:int *
col:int *
startBraceSpan:TextSpan byref *
endBraceSpan:TextSpan byref -> bool
override GetPairExtents :
textView:IVsTextView *
line:int *
col:int *
startBraceSpan:TextSpan byref *
endBraceSpan:TextSpan byref -> bool
public function GetPairExtents(
textView : IVsTextView,
line : int,
col : int,
startBraceSpan : TextSpan,
endBraceSpan : TextSpan
) : boolean
Parameters
textView
Type: Microsoft.VisualStudio.TextManager.Interop.IVsTextViewThe IVsTextView that contains the text that contains the matching language elements.
line
Type: Int32The line number.
col
Type: Int32The column number.
startBraceSpan
Type: Microsoft.VisualStudio.TextManager.Interop.TextSpan%[out] The IVsTextSpan that contains the starting element.
endBraceSpan
Type: Microsoft.VisualStudio.TextManager.Interop.TextSpan%[out] The IVsTextSpan that contains the end element.
Return Value
Type: Boolean
true if the pair was found, otherwise false.
Remarks
This method performs a BeginParse operation with MatchBraces and a ParseResultHandler of HandleGetPairExtentResponse and returns the starting and ending IVsTextSpan objects.
.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.