Align

Class

For examples and usage details, see the component documentation.

View Align Component
Namespace: RazorConsole.Components
Assembly: RazorConsole.Core

Definition

public class Align : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender

Constructors

1
NameTypeDescription
Align()Constructor

Properties

5
NameTypeDescription
Appearance
HeightNullable<Int32>Height of the alignment container in characters. If null , automatically determined by content.
WidthNullable<Int32>Width of the alignment container in characters. If null , automatically determined by content.
Common
ChildContentRenderFragmentAligns content horizontally and vertically within a container using Spectre.Console's Align renderable.
Other
HorizontalHorizontalAlignmentHorizontal alignment of the content. Default is Left.
VerticalVerticalAlignmentVertical alignment of the content. Default is Top.

Methods

1
NameTypeDescription
BuildRenderTree(RenderTreeBuilder)()Method