System.Classes.TCollection Methods

From RAD Studio API Documentation
Jump to: navigation, search


InheritedProtected
AddpublicCreates a new TCollectionItem instance and adds it to the Items array.
Added (deprecated)protectedResponds when items are added to the collection.
AfterConstructionpublicResponds after the last constructor has executed.
AssignpublicCopies the contents of the Source collection to the current object.
AssignToprotectedCopies the properties of an object to a destination object.
BeforeDestructionpublicResponds before the first destructor executes.
BeginUpdatepublicSignals the start of an update operation.
ChangedprotectedResponds when the collection or any of its items changes.
CheckDisposedprotected
ClassInfopublicReturns a pointer to the run-time type information (RTTI) table for the object type.
ClassNamepublicReturns a string indicating the type of the object instance (as opposed to the type of the variable passed as an argument).
ClassNameIspublicDetermines whether an object is of a specific type.
ClassParentpublicReturns the type of the immediate ancestor of a class.
ClassTypepublicReturns the class reference for the object's class.
CleanupInstancepublicPerforms finalization on long strings, variants, and interface variables within a class.
ClearpublicDeletes all items from the collection.
CreatepublicCreates and initializes a collection.
DefaultHandlerpublicProvides the interface for a method that processes message records.
DefinePropertiesprotectedProvides an interface for a method that reads and writes otherwise unpublished data.
DeletepublicDeletes a single item from the collection.
Deleting (deprecated)protectedResponds when items are deleted from the collection.
DestroypublicDestroys the collection and each item in it.
DispatchpublicCalls message-handling methods for the object, based on the contents of the Message parameter.
DisposeOfpublicDisposeOf forces the execution of the destructor code in an object.
EndUpdatepublicSignals the end of an update operation.
EqualspublicChecks whether the current instance and the Obj parameter are equal.
FieldAddresspublicReturns the address of a published object field.
FindItemIDpublicReturns the item with the specified ID.
FreepublicDestroys an object and frees its associated memory, if necessary.
FreeInstancepublicDeallocates memory allocated by a previous call to the NewInstance method.
GetAttrprotectedReturns the name of a custom attribute that can be retrieved using the GetItemAttr method.
GetAttrCountprotectedReturns the number of custom attributes associated with items in the collection.
GetDisposedprotectedGetter for the Disposed property.
GetEnumeratorpublicReturns a TCollection enumerator.
GetHashCodepublicReturns an integer containing the hash code.
GetInterfacepublicRetrieves a specified interface.
GetInterfaceEntrypublicReturns the entry for a specific interface implemented in a class.
GetInterfaceTablepublicReturns a pointer to a structure containing all of the interfaces implemented by a given class.
GetItemprotectedReturns a specified item in the collection.
GetItemAttrprotectedReturns the value of a custom attribute assigned to one of the collection's items.
GetNamePathpublicReturns a string used by the Object Inspector.
GetOwnerprotectedReturns the owner of an object.
InheritsFrompublicDetermines the relationship of two object types.
InitInstancepublicInitializes a newly allocated object instance to all zeros and initializes the instance's virtual method table pointer.
InsertpublicCreates a new TCollectionItem instance and adds it to the Items array.
InstanceSizepublicReturns the size in bytes of each instance of the object type.
MethodAddresspublicReturns the address of a class method by name.
MethodNamepublicReturns the name of a class method by address.
NewInstancepublicAllocates memory for an instance of an object type and returns a pointer to that new instance.
NotifyprotectedResponds when items are added to or removed from the collection.
OwnerpublicReturns the Owner of the collection.
QualifiedClassNamepublicReturns the qualified name of the class.
SafeCallExceptionpublicHandles exceptions in methods declared using the safecall calling convention.
SetItemprotectedCopies the properties of another item to a specified item in the collection.
SetItemNameprotectedInitializes the name of a newly inserted collection item.
ToStringpublicReturns a string containing the class name.
UnitNamepublicReturns the name of the unit where the class is defined.
UnitScopepublicReturns the class's unit scope.
UpdateprotectedUpdates the collection to reflect changes to its items.