TdxBarManager.GetItemByCategory(Integer,Integer) Method
Returns a particular item in a specified category.
Declaration
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