Align
ClassFor examples and usage details, see the component documentation.
View Align ComponentNamespace:
RazorConsole.ComponentsAssembly:
RazorConsole.CoreDefinition
public class Align : ComponentBase, IComponent, IHandleEvent, IHandleAfterRenderConstructors
1| Name | Type | Description |
|---|---|---|
Align() | Constructor | — |
Properties
5| Name | Type | Description |
|---|---|---|
Appearance | ||
Height | Nullable<Int32> | Height of the alignment container in characters. If null , automatically determined by content. |
Width | Nullable<Int32> | Width of the alignment container in characters. If null , automatically determined by content. |
Common | ||
ChildContent | RenderFragment | Aligns content horizontally and vertically within a container using Spectre.Console's Align renderable. |
Other | ||
Horizontal | HorizontalAlignment | Horizontal alignment of the content. Default is Left. |
Vertical | VerticalAlignment | Vertical alignment of the content. Default is Top. |
Methods
1| Name | Type | Description |
|---|---|---|
BuildRenderTree(RenderTreeBuilder)() | Method | — |