RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TOwnedCollection Class

TOwnedCollection is a collection that maintains information about its owner.

Pascal
TOwnedCollection = class(TCollection);
C++
class TOwnedCollection : public TCollection;

Classes

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. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!