Supported PlatformsProject Types: Desktop Platforms: macOS, Windows, Linux
- For web applications, see WebLabel.
Displays read-only text.
You can define an accelerator character for a Label. In the Text property, precede the accelerator character with an ampersand. For example, the entry "&Home" signifies that the H is the accelerator. Pressing Alt+H on Windows triggers the AcceleratorKey event.
The following example sets the text of the Label.