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

C#
Visual Basic

Azuki 1.7 Documentation
KeywordHighlighter..::..AddRegex Method (String, CharClass)
KeywordHighlighter Class See Also Send Feedback

Entry a pattern specified with a regular expression (case sensitive) to be highlighted.

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

# Syntax

C#
    public void AddRegex(
    	string regex,
    	CharClass klass
    )

Visual Basic
    Public Sub AddRegex (
    	regex As String,
    	klass As CharClass
    )

#### Parameters

regex
  Type: System..::..String
  A regular expression expressing a text pattern to be highlighted.

klass
  Type: Sgry.Azuki..::..CharClass
  Character class to be assigned for each characters consisting the pattern matched with the regular expression.

# Exceptions

Exception | Condition
--- | ---
System..::..ArgumentNullException | Parameter 'regex' was null.
System..::..ArgumentException | Parameter 'regex' was not a valid regular expression.

# See Also

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