Class IndentBox
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
contentsBlockThe block contents.
IndentBox(params Block[])
Creates an indented block from a parameter list of blocks.
public IndentBox(params Block[] contents)
Parameters
contentsBlock[]The block contents.
IndentBox(IReadOnlyList<Block>)
Creates an indented block from a sequence of blocks.
public IndentBox(IReadOnlyList<Block> contents)
Parameters
contentsIReadOnlyList<Block>The block contents.
Methods
WithContents(Block)
Creates a copy of this block container with different contents.
public override BlockContainer WithContents(Block newContents)
Parameters
newContentsBlockThe new block contents.
Returns
- BlockContainer
A new indented block with the updated contents.