System.Classes.TComponent.GetOwner

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

function GetOwner: TPersistent; override;

C++

DYNAMIC TPersistent* __fastcall GetOwner(void);

Properties

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

Description

Returns the owner of a component.

GetOwner is called by GetNamePath to find the owner of a component. GetNamePath and GetOwner are introduced in TPersistent so descendants such as collections can appear in the Object Inspector. For TComponent, GetOwner returns the value of the Owner property.

See Also