Show: Delphi C++
Display Preferences

FMX.StdCtrls.TButton.Text

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Text: string read GetText write SetText stored TextStored default 0;

C++

__property Text = {default=0};

Properties

Type Visibility Source Unit Parent
property published
FMX.StdCtrls.pas
FMX.StdCtrls.hpp
FMX.StdCtrls TButton

Description

Specifies the text that will be displayed over the surface of this control.

FMX.StdCtrls.TButton.Text inherits from FMX.StdCtrls.TPresentedTextControl.Text. All content below this line refers to FMX.StdCtrls.TPresentedTextControl.Text.

Specifies the text that will be displayed over the surface of this control.

In the Text property you can define an accelerator key. On Windows platforms, an accelerator key is shown as an underlined letter. To specify an accelerator key, precede an <accelerator_letter> with an ampersand & character. The letter after the ampersand appears underlined. For example, to set the S character as an accelerator key for a Save button, type &Save. On Windows platforms, accelerator keys enable the user to access controls pressing Alt+<accelerator_letter> key combination. When run on not Windows platforms, a single ampersand is simply stripped from the text. To show a single ampersand & character in a Text property specify doubled ampersand && characters.

See Also

Personal tools
RAD Studio 10.2 Tokyo
In Other Languages
Previous Versions
Assistance