Icon IndexOfControl Method

function IndexOfControl(AControl: TControl; AControlClass:
      TControlClass=nil): Integer

Available In: Visual Client Applications

Use this method to determine the index of a child control within the Controls property. You can, optionally, also pass a TControlClass type to limit the search to a particular TControl class type.
Image