Label Constructor

Declaration

public Label();

Description

Constructs a Label with no initial text.

Use this constructor with no arguments to create an empty Label.


Declaration

public Label(string text);

Parameters

text The initial text to be displayed in the Label.

Description

Constructs a Label displaying the specified text.

Use the text parameter to create a Label with the specified value as the initial text.


Did you find this page useful? Please give it a rating: