Back to Devexpress

TdxBarManager.GetCountByCategory(Integer) Method

vcl-dxbar-dot-tdxbarmanager-dot-getcountbycategory-x28-system-dot-integer-x29.md

latest1.7 KB
Original Source

TdxBarManager.GetCountByCategory(Integer) Method

Returns the number of items (excluding TdxBarControlContainerItem items) that are currently accessible to end-users in a specified category.

Declaration

delphi
function GetCountByCategory(ACategory: Integer): Integer;

Parameters

NameType
ACategoryInteger

Returns

Type
Integer

Remarks

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

If the index is out of range, the GetCountByCategory function returns 0.

The GetCountByCategory function returns only the number of items that are accessible to end-users in a specified category. To get the total number of items in a particular category, use the GetAllItemsByCategory function.

See Also

TdxBarManager.GetAllItemsByCategory

TdxBarManager.GetItemByCategory

TdxBarManager.GetItemsByCategory

TdxBarManager Class

TdxBarManager Members

dxBar Unit