FMX.Layouts.TGridPanelLayout.TControlCollection.AddControl
Delphi
procedure AddControl(AControl: TControl; AColumn: Integer = -1; ARow: Integer = -1);
C++
void __fastcall AddControl(Fmx::Controls::TControl* AControl, int AColumn = 0xffffffff, int ARow = 0xffffffff);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | FMX.Layouts.pas FMX.Layouts.hpp |
FMX.Layouts | TControlCollection |
Description
Places the specified AControl
control in the TControlCollection collection on the specified Row and Column.
AddControl creates a new TControlItem instance in the TControlCollection collection, assigns the specified AControl
control to this TControlItem control item, and places this control item into the Row and Column cells.
When Row and Column are -1, then AddControl places the specified AControl
control in the first free cell of the corresponding column or row.
Used in TGridPanelLayout grid panel layouts.