FlexBoxRenderable
ClassA renderable that lays out child items using a CSS-like flexbox model. Supports configurable direction, justification, alignment, wrapping, and gap.
Namespace:
RazorConsole.Core.RenderablesAssembly:
RazorConsole.CoreDefinition
public sealed class FlexBoxRenderable : IRenderableConstructors
1| Name | Type | Description |
|---|---|---|
FlexBoxRenderable(IReadOnlyList<IRenderable>, FlexDirection, FlexJustify, FlexAlign, FlexWrap, int, int?, int?)() | Constructor | Initializes a new instance of the FlexBoxRenderable class. |
Properties
7| Name | Type | Description |
|---|---|---|
Behavior | ||
Wrap | FlexWrap | Gets the wrapping behavior. |
Appearance | ||
Height | Nullable<Int32> | Gets the explicit height constraint, or null to use the available height. |
Width | Nullable<Int32> | Gets the explicit width constraint, or null to use the available width. |
Other | ||
Align | FlexAlign | Gets the cross-axis alignment strategy. |
Direction | FlexDirection | Gets the main axis direction. |
Gap | Int32 | Gets the gap (in characters/rows) between items along the main axis. |
Justify | FlexJustify | Gets the main-axis justification strategy. |
Methods
2| Name | Type | Description |
|---|---|---|
Measure(RenderOptions, int)() | Measurement | — |
Render(RenderOptions, int)() | IEnumerable<Segment> | — |