Skip to content

Class Label

Text, one row per line.

Declaration
public sealed class Label : Element

Inheritance: System.Object -> DarkEffekt.Terminal.UI.Element

The text. A line feed starts a new line.

Declaration
public string Text { get; set; }

Where a line too wide for the label breaks. With wrapping on, the label takes the width the layout offers and as many rows as its text needs at that width.

Declaration
public TextWrap Wrap { get; set; }

Where each line sits within the label’s width.

Declaration
public Align Align { get; set; }

Bold, underline, and the other cell attributes.

Declaration
public CellAttrs Attrs { get; set; }

The size this element wants, within the room given.

Declaration
protected override CellSize MeasureCore(CellSize available)

DarkEffekt.Terminal.UI.CellSize

Type Name
DarkEffekt.Terminal.UI.CellSize available
Declaration
protected override void RenderCore(CellCanvas canvas)
Type Name
DarkEffekt.Terminal.UI.CellCanvas canvas