Skip to main content

TcxEditRepository.ItemByName(string) Method

Returns a stored edit repository item by its name.

Declaration

function ItemByName(const ARepositoryItemName: string): TcxEditRepositoryItem;

Parameters

Name Type Description
ARepositoryItemName string

The target repository item name.

Returns

Type Description
TcxEditRepositoryItem

The returned repository item whose name is passed as the ARepositoryItemName parameter. The function returns nil (in Delphi) or nullptr (in C++Builder) if the repository stores no item with the specified name.

To access all public API members of the returned repository item, you need to cast it to the corresponding edit repository item class. Call the item’s ClassType function to identify its actual class.

See Also