System.Classes.TComponent.GetOwner

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetOwner: TPersistent; override;

C++

DYNAMIC TPersistent* __fastcall GetOwner();

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