Entry a pattern specified with a regular expression containing
capturing groups which will be highlighted.
Namespace: Sgry.Azuki.HighlighterAssembly: Azuki (in Azuki.dll) Version: 1.7.13.40248
Syntax
C# |
---|
public void AddRegex(
string regex,
bool ignoreCase,
IList<CharClass> klassList
) |
Visual Basic |
---|
Public Sub AddRegex (
regex As String,
ignoreCase As Boolean,
klassList As IList(Of CharClass)
) |
Parameters
- regex
- Type: System..::..String
A regular expression containing capturing groups
to be highlighted.
- ignoreCase
- Type: System..::..Boolean
Whether the regular expression should be matched
case-insensitively or not.
- 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.
|
System..::..ArgumentException |
Parameter 'regex' was not a valid regular expression.
|
See Also