[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'Classes' (#rtl)

TComponent.HasParent

Does the component have a parent ?

Declaration

Source position: classesh.inc line 1356

public function TComponent.HasParent: Boolean; dynamic;

Description

HasParentcan be implemented to return whether the parent of the component exists. The implementation of this method in TComponent always returns False, and should be overridden by descendent classes to return Truewhen a parent is available. If HasParentreturns True, then GetParentComponentwill return the parent component.

See also

HasParent

  

Does the component have a parent ?

Owner

  

Owner of this component.