FMX.Types.TFmxObject.HasParent

From RAD Studio API Documentation

Delphi

function HasParent: Boolean; override;

C++

DYNAMIC bool __fastcall HasParent(void);

Properties

Type Visibility Source Unit Parent
function public
FMX.Types.pas
FMX.Types.hpp
FMX.Types TFmxObject

Description

Verifies whether the component has a parent. {{#multireplace:FMX.Types.TFmxObject.HasParent|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}} inherits from {{#multireplace:System.Classes.TComponent.HasParent|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}. All content below this line refers to {{#multireplace:System.Classes.TComponent.HasParent|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}.

Verifies whether the component has a parent.

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.

See Also