FMX.Controls.TStyleCollectionItem.IsEmpty
Delphi
property IsEmpty: Boolean read GetIsEmpty;
C++
__property bool IsEmpty = {read=GetIsEmpty, nodefault};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | FMX.Controls.pas FMX.Controls.hpp |
FMX.Controls | TStyleCollectionItem |
Description
Returns True
if the item of the collection from the TStyleBook is empty.
For RAD Studio Seattle or superior, a TStyleBook is a collection of TStyleCollectionItem. Each item of the collection can contain a style for a specific platform. When a style is stored in an item, the IsEmpty property returns False
. Use IsEmpty to find when an item stores a style.
For example:
procedure EmptyItem;
begin
if StyleBook1.Styles.Items[0].IsEmpty then
ShowMessage('The style is empty')
else
ShowMessage('The style is not empty');
end;