Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxBarManager.GetItemByCategory(Integer,Integer) Method

Returns a particular item in a specified category.

#Declaration

Delphi
function GetItemByCategory(ACategory: Integer; AIndex: Integer): TdxBarItem;

#Parameters

Name Type
ACategory Integer
AIndex Integer

#Returns

Type
TdxBarItem

#Remarks

The ACategory parameter specifies the index of a category within the bar manager’s Categories zero-based indexed collection.

The AIndex parameter specifies an item within the specified category.

The GetItemByCategory function locates a specified item within the list returned via the GetItemsByCategory function.

If the category does not exist or the item cannot be found in this category, the GetItemByCategory function returns nil.

Call the bar manager’s GetAllItemsByCategory function to determine the number of items in a particular category. To determine the number of items that are accessible to end-users within this category, call the GetCountByCategory function.

See Also