FMX.ListBox.TListBoxItem.Text

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

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.ListBox.pas
FMX.ListBox.hpp
FMX.ListBox TListBoxItem

Description

Specifies the text that will be rendered over the surface of this TTextControl object.

FMX.ListBox.TListBoxItem.Text inherits from FMX.Controls.TTextControl.Text. All content below this line refers to FMX.Controls.TTextControl.Text.

Specifies the text that will be rendered over the surface of this TTextControl object.

Set the Text property to specify the text that will be displayed by this TTextControl. Text can be any string.

If there are any effects already applied before changing the Text property, they will be preserved for the new text. Also, the surface of this TTextControl is repainted.

The Text property can be used to define an accelerator key to a control or menu item.

Tip: If you specify a new text string that is exactly the same as the one already displayed, the effects will not be re-updated and this TTextControl object will not be repainted.

Note: FMX.ExtCtrls.TPopupBox.Text is not a writable property in the same way as FMX.Controls.TTextControl.Text. The FMX.ExtCtrls.TPopupBox.Text property cannot be "any string", but instead must be just one of the strings in the FMX.ExtCtrls.TPopupBox.Items property and, in this case, FMX.ExtCtrls.TPopupBox.ItemIndex is updated accordingly.

See Also

Code Examples