FlexBoxRenderable

Class

A renderable that lays out child items using a CSS-like flexbox model. Supports configurable direction, justification, alignment, wrapping, and gap.

Namespace: RazorConsole.Core.Renderables
Assembly: RazorConsole.Core

Definition

public sealed class FlexBoxRenderable : IRenderable

Constructors

1
NameTypeDescription
FlexBoxRenderable(IReadOnlyList<IRenderable>, FlexDirection, FlexJustify, FlexAlign, FlexWrap, int, int?, int?)()ConstructorInitializes a new instance of the FlexBoxRenderable class.

Properties

7
NameTypeDescription
Behavior
WrapFlexWrapGets the wrapping behavior.
Appearance
HeightNullable<Int32>Gets the explicit height constraint, or null to use the available height.
WidthNullable<Int32>Gets the explicit width constraint, or null to use the available width.
Other
AlignFlexAlignGets the cross-axis alignment strategy.
DirectionFlexDirectionGets the main axis direction.
GapInt32Gets the gap (in characters/rows) between items along the main axis.
JustifyFlexJustifyGets the main-axis justification strategy.

Methods

2
NameTypeDescription
Measure(RenderOptions, int)()Measurement
Render(RenderOptions, int)()IEnumerable<Segment>