Class CodeBlockNode
A code block. Wire type is "codeBlock" — the C# name keeps the
application's Code terminology while the discriminator matches the
runtime contract (master prompt section 2). Typically contains a single
TextNode whose Text is the code; the
text MUST be preserved verbatim (whitespace, newlines, indentation).
Inherited Members
Namespace: Syncfusion.Maui.RichTextEditor
Assembly: Syncfusion.Maui.RichTextEditor.dll
Syntax
public sealed class CodeBlockNode : BlockNode
Constructors
CodeBlockNode()
Declaration
public CodeBlockNode()
Properties
Attrs
Code-block attributes (language only).
Declaration
[JsonPropertyName("attrs")]
public CodeBlockAttrs Attrs { get; set; }
Property Value
| Type |
|---|
| CodeBlockAttrs |
Children
Inline children — typically a single TextNode.
Declaration
[JsonPropertyName("children")]
public List<InlineNode> Children { get; set; }
Property Value
| Type |
|---|
| List<InlineNode> |