MeasuredAlign

Class

Represents a renderable used to align content.

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

Definition

public sealed class MeasuredAlign : Renderable

Constructors

1
NameTypeDescription
MeasuredAlign(IRenderable, HorizontalAlignment, VerticalAlignment?)()ConstructorInitializes a new instance of the Align class.

Properties

4
NameTypeDescription
Appearance
HeightNullable<Int32>Gets or sets the height.
WidthNullable<Int32>Gets or sets the width.
Other
HorizontalHorizontalAlignmentGets or sets the horizontal alignment.
VerticalNullable<VerticalAlignment>Gets or sets the vertical alignment.

Methods

3
NameTypeDescription
AlignHorizontally<T>(T, HorizontalAlignment, int)()Method
Measure(RenderOptions, int)()Measurement
Render(RenderOptions, int)()IEnumerable<Segment>