다음을 통해 공유


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.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 Sub GetPairExtents ( _
    textView As IVsTextView, _
    line As Integer, _
    col As Integer, _
    <OutAttribute> ByRef span As TextSpan _
)
public virtual void GetPairExtents(
    IVsTextView textView,
    int line,
    int col,
    out TextSpan span
)

Parameters

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

See Also

Reference

Source Class

GetPairExtents Overload

Microsoft.VisualStudio.Package Namespace