Unit 'Controls' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#lcl]


The number of child controls in the Controls property.


Source position: controls.pp line 2268

public property TWinControl.ControlCount : Integer
  read GetControlCount;


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



Provides indexed access to the child controls for the class instance.



Repositions and resizes the control and child controls.

CT Web help

CodeTyphon Studio