-
Notifications
You must be signed in to change notification settings - Fork 0
Checkbox
Tyberious edited this page Sep 4, 2023
·
1 revision
The Checkbox control lets you display a Checkbox with a caption in the console window.
-
XandY: Set the position of the checkbox. -
BackgroundColorandForegroundColor: 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
Checkbox MyTestCheckbox = new Checkbox{
Checked = false,
X = 10,
Y = 15,
ForegroundColor = ConsoleColor.White,
BackgroundColor = ConsoleColor.DarkRed,
Caption = "Check this box if you're awesome"
};