Skip to content

TComponent.GetParentComponent

Returns the parent component.

Declaration

Source position: classesh.inc line 2712

public 
function TComponent.GetParentComponent : TComponent;  dynamic;

Description

GetParentComponent can be implemented to return the parent component of this component. The implementation of this method in TComponent always returns Nil. Descendant classes must override this method to return the visual parent of the component.

See also

Name Description
HasParent Does the component have a parent ?
Owner Owner of this component.