Table of Contents

Constructor CheckBox

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

CheckBox()

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

public CheckBox()

CheckBox(ustring, bool)

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

public CheckBox(ustring s, bool is_checked = false)

Parameters

s ustring

S.

is_checked bool

If set to true is checked.

CheckBox(int, int, ustring)

Initializes a new instance of CheckBox using Absolute layout.

public CheckBox(int x, int y, ustring s)

Parameters

x int
y int
s ustring

Remarks

The size of CheckBox is computed based on the text length. This CheckBox is not toggled.

CheckBox(int, int, ustring, bool)

Initializes a new instance of CheckBox using Absolute layout.

public CheckBox(int x, int y, ustring s, bool is_checked)

Parameters

x int
y int
s ustring
is_checked bool

Remarks

The size of CheckBox is computed based on the text length.