Skip to main content

NodeKindFlags Enum

Definition​

Assembly:Avalonia.Controls.Documents
Package:Avalonia.Controls.Documents

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

Inheritance: Enum -> NodeKindFlags

Fields​

NameDescription
BlockBlock-level element (Paragraph, List, Table, Section, etc.).
BlockContainerBlock container whose direct children are block-level elements (Document, Section, ListItem, TableCell).
InlineInline element (Run, Bold, Italic, Span, Hyperlink, LineBreak, etc.).
InlineContainerInline container that holds Avalonia.Controls.Documents.RichInline children directly (Paragraph, Span, Bold, Italic, Underline, Superscript, Subscript, Hyperlink).
LeafLeaf node that never has children (Run, LineBreak).
NoneNo flags set.
RemoveWhenChildlessContainer that should be automatically removed when all its children have been deleted (List, ListItem, Table, TableRow, TableRowGroup, Section).
RootThe 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.
TableStructureTable-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