Grid

Class

For examples and usage details, see the component documentation.

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

Definition

public class Grid : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender

Constructors

1
NameTypeDescription
Grid()Constructor

Properties

4
NameTypeDescription
Appearance
WidthNullable<Int32>Width of the grid in characters. If null , automatically determined by content.
Common
ChildContentRenderFragmentArranges content in a multi-column grid using Spectre.Console's Grid renderable.
Other
ColumnsInt32Number of columns in the grid. Default is 2. Must be positive.
ExpandBooleanWhether the grid should expand to fill available space. Default is false .

Methods

1
NameTypeDescription
BuildRenderTree(RenderTreeBuilder)()Method