Sign in Join
FPDoc Onlineexperiment

TControl.IsParentOf function

Member of TControlpublicIn unit Controls

Determines whether this control is a parent of AControl.

Declaration

pascal
function IsParentOf(AControl: TControl): Boolean; virtual

Description

IsParentOf is a Boolean function used to determine if the current control instance is ultimately a parent of the control specified in AControl. No actions are performed in the method when AControl has not been assigned ( Nil), and the return value is set to False.

IsParentOf visits each control in the Parent control hierarchy, and returns True if the current class instance (Self) is found in the tree. The return value is False if the current control instance is not found in the Parent control tree.

See also

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