Class BlockContainer
Base type for block nodes that contain a single block child.
public abstract class BlockContainer : Block
- Inheritance
-
BlockContainer
- Derived
- Inherited Members
Constructors
BlockContainer(Block)
Creates a block container.
protected BlockContainer(Block contents)
Parameters
contentsBlockThe contained block markup.
BlockContainer(IReadOnlyList<Block>)
Creates a block container from a sequence of blocks.
protected BlockContainer(IReadOnlyList<Block> contents)
Parameters
contentsIReadOnlyList<Block>The contained block markup.
Properties
Contents
Gets the contained block markup.
public Block Contents { get; }
Property Value
Methods
WithContents(Block)
Creates a copy of this node with new contents.
public abstract BlockContainer WithContents(Block newContents)
Parameters
newContentsBlock