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

C#
Visual Basic

Azuki 1.7 Documentation
CharClass Enumeration
See Also Send Feedback

Class of characters for associating logical meaning for each tokens.

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

# Syntax

C#
    public enum CharClass

Visual Basic
    Public Enumeration CharClass

# Members

| Member name | Value | Description
--- | --- | --- | ---
| Normal | 0 | Normal character.
| Number | 1 | Number literal.
| String | 2 | String.
| Comment | 3 | Comment.
| DocComment | 4 | Document Comment.
| Keyword | 5 | Keyword.
| Keyword2 | 6 | Additional keyword set.
| Keyword3 | 7 | Another Additional keyword set.
| Macro | 8 | Macro (C/C++, C#, ...).
| Character | 9 | Character (C/C++, Java, ...).
| Type | 10 | Type (any).
| Regex | 11 | Regular expression literal (Perl, Javascript...).
| Annotation | 12 | Annotation (Java).
| Selecter | 13 | Selector (CSS).
| Property | 14 | Property name (CSS).
| Value | 15 | Value (CSS, ...).
| ElementName | 16 | Element name (XML).
| Entity | 17 | Entity (XML).
| Attribute | 18 | Attribute (XML).
| AttributeValue | 19 | Attribute value (XML).
| EmbededScript | 20 | Embedded script block (XML).
| Delimiter | 21 | Delimiter.
| CDataSection | 22 | CDATA section. (XML)
| LatexCommand | 23 | LaTeX command. (LaTeX)
| LatexBracket | 24 | Brackets used in LaTeX. (LaTeX)
| LatexCurlyBracket | 25 | Curly brackets used in LaTeX. (LaTeX)
| LatexEquation | 26 | Equation. (LaTeX)
| Heading1 | 27 | Heading 1 (LaTeX, Wiki, HTML).
| Heading2 | 28 | Heading 2 (LaTeX, Wiki, HTML).
| Heading3 | 29 | Heading 3 (LaTeX, Wiki, HTML).
| Heading4 | 30 | Heading 4 (LaTeX, Wiki, HTML).
| Heading5 | 31 | Heading 5 (LaTeX, Wiki, HTML).
| Heading6 | 32 | Heading 6 (LaTeX, Wiki, HTML).
| Function | 33 | Function (C, Java, ...)
| Class | 34 | Class (C++, Java, ...)
| Variable | 35 | Variable (Batch file, ...)
| Label | 36 | Label (Batch file, ...)
| AddedLine | 37 | New line (diff/patch file)
| RemovedLine | 38 | Removed line (diff/patch file)
| ChangedLine | 39 | Changed line (diff/patch file)
| ChangeCommandLine | 40 | Change-command line (diff/patch file)
| IndexLine | 41 | Index line (diff/patch file)

# Remarks

CharClass enumeration specifies the class of characters.

The 'class of characters' here is used to classify and associate logical meanings to each tokens in document. If the document is source code of some programming language, there are several types of tokens in it; string literals, comment blocks and so on. In this case, CharClass.String should be used to mark each string literals, CharClass.Comment should be used to mark each comment blocks/lines. If tokens were properly marked by appropriate char-classes, the document is programmatically accessible so Azuki (View objects) can render each token differently.

To classify characters, use Document.SetCharClass method.

# See Also

Sgry.Azuki Namespace
Document.SetCharClass method