Show: Delphi C++
Display Preferences

System.Classes.TOwnedCollection

From XE2 API Documentation
Jump to: navigation, search

System.Classes.TCollectionSystem.Classes.TPersistentSystem.TObject
TOwnedCollection

Delphi

TOwnedCollection = class(TCollection)

C++

class PASCALIMPLEMENTATION TOwnedCollection : public TCollection

Properties

Type Visibility Source Unit Parent
class public
System.Classes.pas
System.Classes.hpp
System.Classes System.Classes

Description

TOwnedCollection is a collection that maintains information about its owner.

By maintaining information about its owner, TOwnedCollection lets the Object Inspector display the collection's name at design time.

Note: This information is not part of TOwnedCollection's public interface.

New collection classes should descend from TOwnedCollection. By descending from TOwnedCollection, the derived class does not need to add anything in order to appear in the Object Inspector. Classes that descend directly from TCollection must implement a GetOwner method if they are to appear in the Object Inspector.

See Also

Personal tools
Previous Versions
Translations