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
spans
Type: array<Microsoft.VisualStudio.TextManager.Interop.TextSpan[]The array of text spans.
priority
Type: Int32The priority of the match.
.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.