次の方法で共有


Source.GetPairExtents Method (IVsTextView, Int32, Int32, TextSpan%, TextSpan%)

Gets the text spans for a matching pair (or triplet) of language elements.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.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)

Syntax

'宣言
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
)

Parameters

Return Value

Type: System.Boolean

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

See Also

Reference

Source Class

GetPairExtents Overload

Microsoft.VisualStudio.Package Namespace