Compartir a través de


AuthoringSink.BraceMatching Property

Indicates if brace matching should be done for a parse operation.

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 (in Microsoft.VisualStudio.Package.LanguageService.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 ReadOnly Property BraceMatching As Boolean
public bool BraceMatching { get; }
public:
property bool BraceMatching {
    bool get ();
}
member BraceMatching : bool with get
function get BraceMatching () : boolean

Property Value

Type: Boolean
Returns true if brace matching is to be done; otherwise, returns false (no brace matching allowed).

Remarks

This property is queried by the parser to determine if it should deal with brace matching in this particular execution and if so, store matching braces with a call to MatchPair. This property examines the ParseReason and returns true if it is MatchBraces, HighlightBraces, or MemberSelectAndHighlightBraces.

.NET Framework Security

See Also

Reference

AuthoringSink Class

Microsoft.VisualStudio.Package Namespace