From RAD Studio API Documentation
Jump to: navigation, search


property Text: string read GetText write SetText default 0;


__property Text = {default=0};


Type Visibility Source Unit Parent
property published
FMX.StdActns TValueRangeAction


Represents the caption of the action.

FMX.StdActns.TValueRangeAction.Text inherits from FMX.ActnList.TCustomAction.Text. All content below this line refers to FMX.ActnList.TCustomAction.Text.

Represents the caption of the action.

Text holds the string that is used in the same way as the Caption of the action, when it is set. The value of Text is propagated to the action's clients.

Text is the same as Caption. You can use both Text and Caption, but descendant classes should only use the published property Text, so that the Object Inspector displays only the Text property, as in most FireMonkey components.

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 action, type &Save. On Windows platforms, accelerator keys enable the user to activate actions pressing Alt+<accelerator_letter> key combination. To show a single ampersand & character in a Text property specify doubled ampersand && characters. Notice that & and _ are seen and can be used only under Windows.

See Also