FMX.Layouts.TGridPanelLayout.TControlCollection.IndexOf

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

function IndexOf(AControl: TControl): Integer;

C++

int __fastcall IndexOf(Fmx::Controls::TControl* AControl);

Propriétés

Type Visibilité  Source Unité  Parent
function public
FMX.Layouts.pas
FMX.Layouts.hpp
FMX.Layouts TControlCollection


Description

Renvoie l'index de la première occurrence du contrôle AControl spécifié dans le tableau Items.

Le premier élément du tableau a l'index 0, le second élément a l'index 1, et ainsi de suite. Si un élément de contrôle n'est pas dans la liste, IndexOf renvoie -1. Si le contrôle AControl spécifié apparaît dans plus d'un élément de contrôle du tableau, IndexOf renvoie l'index de la première apparence.

Utilisée dans les dispositions volet grille TGridPanelLayout.

Voir aussi