TOwnedCollection = class(TCollection)
class PASCALIMPLEMENTATION TOwnedCollection : public TCollection
TOwnedCollection is a collection that maintains information about its owner.
TOwnedCollection extends TCollection by maintaining information about its owner. Knowledge of the TOwnedCollection owner lets the Object Inspector display the collection's name at design time. Notice that:
- Classes that descend directly from TCollection must implement the GetOwner method if they are to appear in the Object Inspector. Typical descendants see in the TCollection class.
- By descending from TOwnedCollection, the derived class does not need to add anything in order to appear in the Object Inspector, because TOwnedCollection implements the GetOwner method.
|TOwnedCollection descendant||TCollectionItem descendant||Component|