You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tyberious edited this page Sep 4, 2023
·
1 revision
Checkbox Control
The Checkbox control lets you display a Checkbox with a caption in the console window.
Properties
X and Y: Set the position of the checkbox.
BackgroundColor and ForegroundColor: Customize colors for the checkbox.
Checked: gets or sets the checked status of the checkbox.
CheckedCharacter: Defines the character to be used to denote that the box is checked (defaults to "X")
UncheckedCharacter: Defines the character used to denote that the box is unchecked (defaults to " ")
Caption: a label to describe the purpose of the checkbox to the end-user; will be displayed after the actual checkbox
Example
CheckboxMyTestCheckbox=newCheckbox{Checked=false,X=10,Y=15,ForegroundColor=ConsoleColor.White,BackgroundColor=ConsoleColor.DarkRed,Caption="Check this box if you're awesome"};