Class CheckBox
Implements
System.IDisposable
System.ComponentModel.ISupportInitializeNotification
System.ComponentModel.ISupportInitialize
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Terminal.Gui
Assembly: Terminal.Gui.dll
Syntax
public class CheckBox : View, IDisposable, ISupportInitializeNotification, ISupportInitialize
Constructors
| Improve this Doc View SourceCheckBox()
Declaration
public CheckBox()
CheckBox(ustring, Boolean)
Declaration
public CheckBox(ustring s, bool is_checked = false)
Parameters
Type | Name | Description |
---|---|---|
NStack.ustring | s | S. |
System.Boolean | is_checked | If set to true is checked. |
CheckBox(Int32, Int32, ustring)
Declaration
public CheckBox(int x, int y, ustring s)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | x | |
System.Int32 | y | |
NStack.ustring | s |
CheckBox(Int32, Int32, ustring, Boolean)
Declaration
public CheckBox(int x, int y, ustring s, bool is_checked)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | x | |
System.Int32 | y | |
NStack.ustring | s | |
System.Boolean | is_checked |
Properties
| Improve this Doc View SourceChecked
The state of the CheckBox
Declaration
public bool Checked { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceMouseEvent(MouseEvent)
Declaration
public override bool MouseEvent(MouseEvent me)
Parameters
Type | Name | Description |
---|---|---|
MouseEvent | me |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceOnEnter(View)
Declaration
public override bool OnEnter(View view)
Parameters
Type | Name | Description |
---|---|---|
View | view |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceOnToggled(Boolean)
Declaration
public virtual void OnToggled(bool previousChecked)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | previousChecked |
PositionCursor()
Declaration
public override void PositionCursor()
Overrides
| Improve this Doc View SourceProcessHotKey(KeyEvent)
Declaration
public override bool ProcessHotKey(KeyEvent kb)
Parameters
Type | Name | Description |
---|---|---|
KeyEvent | kb |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceProcessKey(KeyEvent)
Declaration
public override bool ProcessKey(KeyEvent kb)
Parameters
Type | Name | Description |
---|---|---|
KeyEvent | kb |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceUpdateTextFormatterText()
Declaration
protected override void UpdateTextFormatterText()
Overrides
Events
| Improve this Doc View SourceToggled
Toggled event, raised when the CheckBox is toggled.
Declaration
public event Action<bool> Toggled
Event Type
Type | Description |
---|---|
System.Action<System.Boolean> |
Implements
System.IDisposable
System.ComponentModel.ISupportInitializeNotification
System.ComponentModel.ISupportInitialize