FMX.Layouts.TGridPanelLayout.TControlCollection.IndexOf
Delphi
function IndexOf(AControl: TControl): Integer;
C++
int __fastcall IndexOf(Fmx::Controls::TControl* AControl);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | FMX.Layouts.pas FMX.Layouts.hpp |
FMX.Layouts | TControlCollection |
Description
Returns the index of the first occurrence of the specified AControl
control in the Items array.
The first item in the array has index 0, the second item has index 1, and so on. If a control item is not in the list, IndexOf returns -1. If the specified AControl
control appears more than in one control item in the array, IndexOf returns the index of the first appearance.
Used in TGridPanelLayout grid panel layouts.