Class BlockContainer

Namespace
Pixie.Markup
Assembly
Pixie.dll

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

contents Block

The contained block markup.

BlockContainer(IReadOnlyList<Block>)

Creates a block container from a sequence of blocks.

protected BlockContainer(IReadOnlyList<Block> contents)

Parameters

contents IReadOnlyList<Block>

The contained block markup.

Properties

Contents

Gets the contained block markup.

public Block Contents { get; }

Property Value

Block

Methods

WithContents(Block)

Creates a copy of this node with new contents.

public abstract BlockContainer WithContents(Block newContents)

Parameters

newContents Block

Returns

BlockContainer