Skip to content

TOwnedCollection

[Properties (by Name)][Methods (by Name)][Events (by Name)]

TCollection descendant which maintains owner information.

Declaration

Source position: classesh.inc line 571

Type
  TOwnedCollection = class (TCollection)
  private
    FOwner : TPersistent;
  protected
    function GetOwner : TPersistent;  Override;
  public
    constructor Create(AOwner: TPersistent; 
                      AItemClass: TCollectionItemClass);
  end
  ;

Description

TOwnedCollection automatically maintains owner information, so it can be displayed in an IDE. Collections that should be displayed in an IDE should descend from TOwnedCollection or must implement a GetOwner function.

Members

Member Type Visibility Description
Create Method public Create a new TOwnerCollection instance.
FOwner Field private
GetOwner Method protected

Inheritance

Class Description
TOwnedCollection TCollection descendant which maintains owner information.

See also

Name Description
TCollection Base class to manage collections of named objects.
TPersistent Base class for streaming system and persistent properties.