RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TComponent.HasParent Method

Verifies whether the component has a parent.

Pascal
function HasParent: Boolean; dynamic;
C++
__fastcall Boolean HasParent();

Call HasParent to determine whether a specific component has a parent.  

Derived classes override this method to implement proper handling for parenting.  

Use GetParentComponent to retrieve the component reference. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!