Data.DB.TDefCollection Methods
From RAD Studio API Documentation
InheritedProtected
Added (deprecated) protected Responds when items are added to the collection.
AfterConstruction public Responds after the last constructor has executed.
Assign public Copies the contents of the Source collection to the current object.
AssignTo protected Copies the properties of an object to a destination object.
BeforeDestruction public Responds before the first destructor executes.
BeginUpdate public Signals the start of an update operation.
Changed protected Responds when the collection or any of its items changes.
CheckDisposed protected
ClassInfo public Returns a pointer to the run-time type information (RTTI) table for the object type.
ClassName public Returns a string indicating the type of the object instance (as opposed to the type of the variable passed as an argument).
ClassNameIs public Determines whether an object is of a specific type.
ClassParent public Returns the type of the immediate ancestor of a class.
ClassType public Returns the class reference for the object's class.
CleanupInstance public Performs finalization on long strings, variants, and interface variables within a class.
Clear public Deletes all items from the collection.
ClearAndResetID public
Create public Instantiates a TDefCollection object.
DefaultHandler public Provides the interface for a method that processes message records.
DefineProperties protected Provides an interface for a method that reads and writes otherwise unpublished data.
Deleting (deprecated) protected Responds when items are deleted from the collection.
Destroy public
Dispatch public Calls message-handling methods for the object, based on the contents of the Message parameter.
DoUpdate protected Internally calls DefChanged.
EndUpdate public Signals the end of an update operation.
Equals public Checks whether the current instance and the Obj parameter are equal.
FieldAddress public Returns the address of a published object field.
Find public Locates a definition object in the Items array from its name.
FindItemID public Returns the item with the specified
ID
. Free public Destroys an object and frees its associated memory, if necessary.
FreeInstance public Deallocates memory allocated by a previous call to the NewInstance method.
GetAttr protected Returns the name of a custom attribute that can be retrieved using the GetItemAttr method.
GetAttrCount protected Returns the number of custom attributes associated with items in the collection.
GetDisposed protected Getter for the Disposed property.
GetEnumerator public Returns a TCollection enumerator.
GetHashCode public Returns an integer containing the hash code.
GetInterface public Retrieves a specified interface.
GetInterfaceEntry public Returns the entry for a specific interface implemented in a class.
GetInterfaceTable public Returns a pointer to a structure containing all of the interfaces implemented by a given class.
GetItem protected Returns a specified item in the collection.
GetItemAttr protected Returns the value of a custom attribute assigned to one of the collection's items.
GetItemNames public Fills a TStrings object with the names of all definitions in the list.
GetNamePath public Returns a string used by the Object Inspector.
GetOwner protected
IndexOf public Finds the index number of a definition in the Items array from its name.
InheritsFrom public Determines the relationship of two object types.
InitInstance public Initializes a newly allocated object instance to all zeros and initializes the instance's virtual method table pointer.
InstanceSize public Returns the size in bytes of each instance of the object type.
MethodAddress public Returns the address of a class method by name.
MethodName public Returns the name of a class method by address.
NewInstance public Allocates memory for an instance of an object type and returns a pointer to that new instance.
Notify protected Responds when items are added to or removed from the collection.
QualifiedClassName public Returns the qualified name of the class.
SafeCallException public Handles exceptions in methods declared using the safecall calling convention.
SetItem protected Copies the properties of another item to a specified item in the collection.
SetItemName protected Initializes the name of a newly inserted collection item.
ToString public Returns a string containing the class name.
UnitName public Returns the name of the unit where the class is defined.
UnitScope public Returns the class's unit scope.
Update protected Updates the collection to reflect changes to its items.
UpdateDefs protected Updates the definitions collection according to the given update method.