Grid
ClassFor examples and usage details, see the component documentation.
View Grid ComponentNamespace:
RazorConsole.ComponentsAssembly:
RazorConsole.CoreDefinition
public class Grid : ComponentBase, IComponent, IHandleEvent, IHandleAfterRenderConstructors
1| Name | Type | Description |
|---|---|---|
Grid() | Constructor | — |
Properties
4| Name | Type | Description |
|---|---|---|
Appearance | ||
Width | Nullable<Int32> | Width of the grid in characters. If null , automatically determined by content. |
Common | ||
ChildContent | RenderFragment | Arranges content in a multi-column grid using Spectre.Console's Grid renderable. |
Other | ||
Columns | Int32 | Number of columns in the grid. Default is 2. Must be positive. |
Expand | Boolean | Whether the grid should expand to fill available space. Default is false . |
Methods
1| Name | Type | Description |
|---|---|---|
BuildRenderTree(RenderTreeBuilder)() | Method | — |