-
Notifications
You must be signed in to change notification settings - Fork 0
Label
Tyberious edited this page Aug 31, 2023
·
2 revisions
The Label
control lets you display text in the console.
-
X
andY
: Set the position of the label. -
BackgroundColor
andForegroundColor
: Customize colors for the label. -
Caption
: The text that will be displayed in the label.
Label nameLabel = new Label
{
X = 5,
Y = 10,
BackgroundColor = ConsoleColor.DarkBlue,
ForegroundColor = ConsoleColor.White,
Caption = "Welcome to SimpleConsole.Controls!"
};
Updating the Caption
property will result in the label being redrawn to the console window.