Collapse All Expand All Code: All Code: Multiple Code: C# Code: Visual Basic

C#
Visual Basic

Azuki 1.7 Documentation
KeywordHighlighter..::..AddRegex Method (Regex, IList<(Of <(<'CharClass>)>)>)
KeywordHighlighter Class See Also Send Feedback

Entry a pattern specified with a regular expression containing capturing groups which will be highlighted.

Namespace: Sgry.Azuki.Highlighter
Assembly: Azuki (in Azuki.dll) Version: 1.7.13.40248

# Syntax

C#
    public void AddRegex(
    	Regex regex,
    	IList<CharClass> klassList
    )

Visual Basic
    Public Sub AddRegex (
    	regex As Regex,
    	klassList As IList(Of CharClass)
    )

#### Parameters

regex
  Type: System.Text.RegularExpressions..::..Regex
  A regular expression containing capturing groups to be highlighted.

klassList
  Type: System.Collections.Generic..::..IList<(Of <(<'CharClass>)>)>
  A list of character classes to be assigned, for each captured groups in the regular expression.

# Exceptions

Exception | Condition
--- | ---
System..::..ArgumentNullException | Parameter 'regex' or 'klassList' was null.

# See Also

KeywordHighlighter Class
KeywordHighlighter..::..KeywordHighlighter Members
AddRegex Overload
Sgry.Azuki.Highlighter Namespace