FMX.StdCtrls.TExpander.IsExpanded

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property IsExpanded: Boolean read FIsExpanded write SetIsExpanded default True;

C++

__property bool IsExpanded = {read=FIsExpanded, write=SetIsExpanded, default=1};

Properties

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

Description

Specifies whether the expander control is expanded or not.

Set the IsExpanded property to True to expand the contents of the expander in order to show all the items it contains. Set IsExpanded to False in order to collapse the expander.

The default value for the IsExpanded property is True.

You can programatically expand and collapse the expander as shown in the following code snippet:

var
  Expander1: TExpander1;

begin
  { expand the expander control }
  Expander1.IsExpanded := True;

  { collapse the expander control }
  Expander1.IsExpanded := False;
end;

See Also