Sign in Join
FPDoc Onlineexperiment

TControl.GetParentComponent function

Member of TControlpublicIn unit Controls

Returns the value in the Parent property.

Declaration

pascal
function GetParentComponent: TComponent; override

Function result

Value in the Parent property.

Description

GetParentComponent gets the component / control which has the current class instance in its Components property. GetParentComponent is an overridden method in TControl, and re-implements the inherited method. It uses the value in the Parent property as the return value for the method. The inherited method always returns Nil.

See also

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