Table of Contents

Class CheckBox

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

The CheckBoxView shows an on/off toggle that the user can set

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

Constructors

CheckBox()

Initializes a new instance of CheckBox based on the given text, using Computed layout.

Properties

AllowNullChecked

If true allows Checked to be null, true or false. If false only allows Checked to be true or false.

Checked

The state of the CheckBox

HotKeySpecifier

Gets or sets the specifier character for the hot key (e.g. '_'). Set to '\xffff' to disable automatic hot key setting support for this View instance. The default is '\xffff'.

Text

The text displayed by the View.

Methods

OnToggled()

Called when the Checked property changes. Invokes the Toggled event.

UpdateTextFormatterText()

Can be overridden if the Text has different format than the default.

Events

Toggled

Toggled event, raised when the CheckBox is toggled.