Class Label
Text, one row per line.
Assembly: DarkEffekt.Terminal.UI
Section titled “Assembly: DarkEffekt.Terminal.UI”public sealed class Label : ElementInheritance: System.Object -> DarkEffekt.Terminal.UI.Element
Properties
Section titled “Properties”The text. A line feed starts a new line.
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.
public TextWrap Wrap { get; set; }Where each line sits within the label’s width.
public Align Align { get; set; }Bold, underline, and the other cell attributes.
public CellAttrs Attrs { get; set; }Methods
Section titled “Methods”MeasureCore(CellSize)
Section titled “MeasureCore(CellSize)”The size this element wants, within the room given.
protected override CellSize MeasureCore(CellSize available)Returns
Section titled “Returns”DarkEffekt.Terminal.UI.CellSize
Parameters
Section titled “Parameters”| Type | Name |
|---|---|
| DarkEffekt.Terminal.UI.CellSize | available |
RenderCore(CellCanvas)
Section titled “RenderCore(CellCanvas)”protected override void RenderCore(CellCanvas canvas)Parameters
Section titled “Parameters”| Type | Name |
|---|---|
| DarkEffekt.Terminal.UI.CellCanvas | canvas |