System.Classes.TCollectionItem.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 TCollectionItem

Description

Returns the collection to which this item belongs.

GetOwner is used by the GetNamePath method to find the collection that owns the collection item, allowing the collection item to appear in the Object Inspector. It returns the value of the Collection property.

Note: The Owner of a collection item is not synonymous with a component's Owner. It has no implications about the freeing of objects but merely serves to represent relationships to the Object Inspector.

See Also