Skip to main content

TdxNavBarComponentCollection.ItemByName(string) Method

Returns a collection item by its name.

Declaration

function ItemByName(const AName: string): TdxNavBarComponentCollectionItem;

Parameters

Name Type
AName string

Returns

Type
TdxNavBarComponentCollectionItem

Remarks

Use the ItemByName method to get a collection item by its name, the name to search for is specified via the AName parameter. The ItemByName method returns the item object whose Name property value is equal to the value of the AName parameter.

If no item matching the name was found in the collection’s Items list, the ItemByName method returns nil.

You can also use the Items property to access a specific collection item by its integer index.

See Also