Class IndentBox

Namespace
Pixie.Markup
Assembly
Pixie.dll

A block node that indents its contents once.

public sealed class IndentBox : BlockContainer
Inheritance
IndentBox
Inherited Members

Constructors

IndentBox(Block)

Creates an indented block.

public IndentBox(Block contents)

Parameters

contents Block

The block contents.

IndentBox(params Block[])

Creates an indented block from a parameter list of blocks.

public IndentBox(params Block[] contents)

Parameters

contents Block[]

The block contents.

IndentBox(IReadOnlyList<Block>)

Creates an indented block from a sequence of blocks.

public IndentBox(IReadOnlyList<Block> contents)

Parameters

contents IReadOnlyList<Block>

The block contents.

Methods

WithContents(Block)

Creates a copy of this block container with different contents.

public override BlockContainer WithContents(Block newContents)

Parameters

newContents Block

The new block contents.

Returns

BlockContainer

A new indented block with the updated contents.