Table of Contents

Constructor Label

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

Label()

Initializes a new instance of View using Computed layout.

public Label()

Remarks

Use X, Y, Width, and Height properties to dynamically control the size and location of the view. The View will be created using Computed coordinates. The initial size (Frame) will be adjusted to fit the contents of Text, including newlines ('\n') for multiple lines.

If Height is greater than one, word wrapping is provided.

This constructor initialize a View with a LayoutStyle of Computed. Use X, Y, Width, and Height properties to dynamically control the size and location of the view.

Label(Rect, bool)

public Label(Rect frame, bool autosize = false)

Parameters

frame Rect
autosize bool

Label(ustring, bool)

public Label(ustring text, bool autosize = true)

Parameters

text ustring
autosize bool

Label(Rect, ustring, bool)

public Label(Rect rect, ustring text, bool autosize = false)

Parameters

rect Rect
text ustring
autosize bool

Label(int, int, ustring, bool)

public Label(int x, int y, ustring text, bool autosize = true)

Parameters

x int
y int
text ustring
autosize bool

Label(ustring, TextDirection, bool)

public Label(ustring text, TextDirection direction, bool autosize = true)

Parameters

text ustring
direction TextDirection
autosize bool