BlockContainer Class

Base class for markdown block nodes that can contain other blocks.

Namespace: Radzen.Documents.Markdown

Assembly: Radzen.Blazor.dll

Syntax

public abstract class BlockContainer : Documents.Markdown.Block, Documents.Markdown.INode

Constructors

BlockContainerlink

Base class for markdown block nodes that can contain other blocks.

Declaration
protected BlockContainer()

Properties

Childrenlink

Returns the children of the block.

Declaration
public IReadOnlyList<Documents.Markdown.Block> Children { get; }
Property Value
Type Description
IReadOnlyList<Documents.Markdown.Block>Returns the children of the block.

FirstChildlink

Declaration
public Documents.Markdown.Block FirstChild { get; }
Property Value
Type Description
Documents.Markdown.Block

LastChildlink

Declaration
public Documents.Markdown.Block LastChild { get; }
Property Value
Type Description
Documents.Markdown.Block

Methods

Addlink

Appends a block to the children of the block.

Declaration
public virtual Documents.Markdown.T Add(Documents.Markdown.T block)
Parameters
Type Name Description
Documents.Markdown.T block The block to add.
Returns
Type Description
Documents.Markdown.TThe added block.

CanContainlink

Determines if the block can contain the specified node.

Declaration
public virtual bool CanContain(Documents.Markdown.Block node)
Parameters
Type Name Description
Documents.Markdown.Block node
Returns
Type Description
bool

NextSiblinglink

Returns the next sibling of the block.

Declaration
public Documents.Markdown.Block NextSibling(Documents.Markdown.Block block)
Parameters
Type Name Description
Documents.Markdown.Block block The block to get the next sibling of.
Returns
Type Description
Documents.Markdown.BlockThe next sibling of the block.

Removelink

Removes a block from the children of the block.

Declaration
public void Remove(Documents.Markdown.Block block)
Parameters
Type Name Description
Documents.Markdown.Block block The block to remove.

Replacelink

Replaces a block with another block.

Declaration
public void Replace(Documents.Markdown.Block source, Documents.Markdown.Block target)
Parameters
Type Name Description
Documents.Markdown.Block source The block to replace.
Documents.Markdown.Block target The block to replace with.
An error has occurred. This app may no longer respond until reloaded. Reload 🗙