TcxEditRepository.CreateItemEx(TcxEditRepositoryItemClass,TComponent) Method
Creates a repository item of a specific class and adds it to the repository.
Declaration
function CreateItemEx(ARepositoryItemClass: TcxEditRepositoryItemClass; AOwner: TComponent): TcxEditRepositoryItem; virtual;
Parameters
Name | Type |
---|---|
ARepositoryItemClass | TcxEditRepositoryItemClass |
AOwner | TComponent |
Returns
Type |
---|
TcxEditRepositoryItem |
Remarks
The CreateItemEx 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 AOwner parameter specifies the component, which becomes the owner of the created repository item. The owner disposes of the repository item when it is destroyed.
See Also