System.Classes.TComponent.HasParent

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

function HasParent: Boolean; dynamic;

C++

DYNAMIC bool __fastcall HasParent(void);

Properties

Type Visibility Source Unit Parent
function public
System.Classes.pas
System.Classes.hpp
System.Classes TComponent

Description

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