Class AlignBox

Namespace
Pixie.Markup
Assembly
Pixie.dll

A block that aligns its contents inside the available width.

public sealed class AlignBox : BlockContainer
Inheritance
AlignBox
Inherited Members

Constructors

AlignBox(Block)

Creates a left-aligned block.

public AlignBox(Block contents)

Parameters

contents Block

The block contents.

AlignBox(Block, Alignment)

Creates an aligned block.

public AlignBox(Block contents, Alignment alignment)

Parameters

contents Block

The block contents.

alignment Alignment

The alignment to apply.

Properties

Alignment

Gets the alignment applied to the contents.

public Alignment Alignment { get; }

Property Value

Alignment

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 aligned block with the updated contents.