Entry a pattern specified with a regular expression to be highlighted.

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

Syntax

C#
public void AddRegex(
	Regex regex,
	CharClass klass
)
Visual Basic
Public Sub AddRegex ( _
	regex As Regex, _
	klass As CharClass _
)

Parameters

regex
Type: System.Text.RegularExpressions..::..Regex
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

ExceptionCondition
System..::..ArgumentNullException Parameter 'regex' was null.

See Also