Compartir a través de


AuthoringSink.MatchMultiple Method

Matching multiples are used to highlight in bold a completed statement. For example, a language can define a construct like if ... elif ... elif ... else ... endif. A priority can also be given so that multiple overlapping pairs can be prioritized for brace matching. The matching pair with the highest priority (largest integer value) wins.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)

Syntax

'Declaration
Public Overridable Sub MatchMultiple ( _
    spans As TextSpan(), _
    priority As Integer _
)
public virtual void MatchMultiple(
    TextSpan[] spans,
    int priority
)
public:
virtual void MatchMultiple(
    array<TextSpan>^ spans, 
    int priority
)
abstract MatchMultiple : 
        spans:TextSpan[] * 
        priority:int -> unit  
override MatchMultiple : 
        spans:TextSpan[] * 
        priority:int -> unit
public function MatchMultiple(
    spans : TextSpan[], 
    priority : int
)

Parameters

  • priority
    Type: Int32

    The priority of the match.

.NET Framework Security

See Also

Reference

AuthoringSink Class

Microsoft.VisualStudio.Package Namespace