NodeKindFlags Enum
Definition
Category flags for Avalonia.Controls.Documents.TextModel.TextDocumentNodeKind. Used by Avalonia.Controls.Documents.TextSchema to validate containment rules without exhaustive kind enumeration.
public enum NodeKindFlags
Fields
| Name | Description |
|---|---|
| Block | Block-level element (Paragraph, List, Table, Section, etc.). |
| BlockContainer | Block container whose direct children are block-level elements (Document, Section, ListItem, TableCell). |
| Inline | Inline element (Run, Bold, Italic, Span, Hyperlink, LineBreak, etc.). |
| InlineContainer | Inline container that holds Avalonia.Controls.Documents.RichInline children directly (Paragraph, Span, Bold, Italic, Underline, Superscript, Subscript, Hyperlink). |
| Leaf | Leaf node that never has children (Run, LineBreak). |
| None | No flags set. |
| RemoveWhenChildless | Container that should be automatically removed when all its children have been deleted (List, ListItem, Table, TableRow, TableRowGroup, Section). |
| Root | The kind of a document root: the top of a tree, which no block navigation crosses. Avalonia.Controls.Documents.TextModel.TextDocumentNodeKind.Document and Avalonia.Controls.Documents.TextModel.TextDocumentNodeKind.PageBand carry it; a further document variant adds another root kind with it. |
| TableStructure | Table-structural node whose children form isolated editing regions (Table, TableRowGroup, TableRow). |
Block Field
Block-level element (Paragraph, List, Table, Section, etc.).
public Avalonia.Controls.Documents.TextModel.NodeKindFlags Block
BlockContainer Field
Block container whose direct children are block-level elements (Document, Section, ListItem, TableCell).
public Avalonia.Controls.Documents.TextModel.NodeKindFlags BlockContainer
Inline Field
Inline element (Run, Bold, Italic, Span, Hyperlink, LineBreak, etc.).
public Avalonia.Controls.Documents.TextModel.NodeKindFlags Inline
InlineContainer Field
Inline container that holds Avalonia.Controls.Documents.RichInline children directly (Paragraph, Span, Bold, Italic, Underline, Superscript, Subscript, Hyperlink).
public Avalonia.Controls.Documents.TextModel.NodeKindFlags InlineContainer
Leaf Field
Leaf node that never has children (Run, LineBreak).
public Avalonia.Controls.Documents.TextModel.NodeKindFlags Leaf
None Field
No flags set.
public Avalonia.Controls.Documents.TextModel.NodeKindFlags None
RemoveWhenChildless Field
Container that should be automatically removed when all its children have been deleted (List, ListItem, Table, TableRow, TableRowGroup, Section).
public Avalonia.Controls.Documents.TextModel.NodeKindFlags RemoveWhenChildless
Root Field
The kind of a document root: the top of a tree, which no block navigation crosses. Avalonia.Controls.Documents.TextModel.TextDocumentNodeKind.Document and Avalonia.Controls.Documents.TextModel.TextDocumentNodeKind.PageBand carry it; a further document variant adds another root kind with it.
public Avalonia.Controls.Documents.TextModel.NodeKindFlags Root
TableStructure Field
Table-structural node whose children form isolated editing regions (Table, TableRowGroup, TableRow).
public Avalonia.Controls.Documents.TextModel.NodeKindFlags TableStructure