Vcl.Controls.TControl.HasParent

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function HasParent: Boolean; override;

C++

DYNAMIC bool __fastcall HasParent();

Properties

Type Visibility Source Unit Parent
function public
Vcl.Controls.pas
Vcl.Controls.hpp
Vcl.Controls TControl

Description

Indicates whether the control has a parent.

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.

See Also