Sign in Join
FPDoc Onlineexperiment

TWinControl.GetControlIndex function

Member of TWinControlpublicIn unit Controls

Finds the position for the specified control in the Controls property.

Declaration

pascal
function GetControlIndex(AControl: TControl): Integer

Arguments

AControl

The child control to locate in the method.

Function result

The ordinal position in Controls, -1 if not found.

Description

Calls the IndexOf method in Controls to find the child control in AControl. The return value contains the ordinal position in Controls where AControl is stored, or -1 when not found or Controls has not been assigned.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.