Table of Contents

Class Label

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

The Label View displays a string at a given position and supports multiple lines separated by newline characters. Multi-line Labels support word wrap.

public class Label : View, IDisposable, ISupportInitializeNotification, ISupportInitialize
Inheritance
Label
Implements
Inherited Members

Remarks

The Label view is functionality identical to View and is included for API backwards compatibility.

Constructors

Label()

Initializes a new instance of View using Computed layout.

Label(ustring, bool)
Label(ustring, TextDirection, bool)
Label(int, int, ustring, bool)
Label(Rect, ustring, bool)
Label(Rect, bool)

Methods

OnClicked()

Virtual method to invoke the Clicked event.

OnEnter(View)

Method invoked when a view gets focus.

OnMouseEvent(MouseEvent)

Method invoked when a mouse event is generated

ProcessHotKey(KeyEvent)

This method can be overwritten by view that want to provide accelerator functionality (Alt-key for example).

Events

Clicked

Clicked Action, raised when the user clicks the primary mouse button within the Bounds of this View or if the user presses the action key while this view is focused. (TODO: IsDefault)