RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TControl.HasParent Method

Indicates whether the control has a parent.

Pascal
function HasParent: Boolean; override;
C++
virtual __fastcall Boolean HasParent();

HasParent indicates whether the Parent property has been assigned a value. This method is used by the streaming system to determine whether the control has a parent that is responsible for writing it to a stream. As implemented in TControl, HasParent returns true if the Parent property is not nil (Delphi) or NULL (C++), and false otherwise. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!