TcxEditRepository.CreateItem(TcxEditRepositoryItemClass) Method
Creates a repository item of a specific class and adds it to the repository.
Declaration
function CreateItem(ARepositoryItemClass: TcxEditRepositoryItemClass): TcxEditRepositoryItem; virtual;
Parameters
Name | Type |
---|---|
ARepositoryItemClass | TcxEditRepositoryItemClass |
Returns
Type |
---|
TcxEditRepositoryItem |
Remarks
The CreateItem method creates a new instance of a repository item (whose class is determined by the ARepositoryItemClass parameter), adds this item to the Items collection and returns it as the function result. The current TcxEditRepository object becomes the owner of the created repository item. The owner disposes of the repository item when it is destroyed.
See Also