Sign in Join
FPDoc Onlineexperiment

TWinControl.ControlCount property

Member of TWinControlpublicIn unit Controls

The number of child controls in the Controls property.

Declaration

pascal
property ControlCount: Integer read GetControlCount;

Description

ControlCount is a read-only Integer property which contains the number of child controls stored in the indexed Controls property.

The value is updated when control instances are created using the current class instance as the Parent for the control. The value is used in the AlignControls method when the Controls are positioned, aligned, and resized. It is also used to determine whether additional actions are needed in methods like DoChildSizingChange, InvalidatePreferredChildSizes, DoAutoSize, and DoAllAutoSize.

See also

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.