Back to Devexpress

TdxBarManager.GetAllItemsByCategory(Integer,TList) Method

vcl-dxbar-dot-tdxbarmanager-dot-getallitemsbycategory-x28-system-dot-integer-system-dot-classes-dot-tlist-x29.md

latest1.7 KB
Original Source

TdxBarManager.GetAllItemsByCategory(Integer,TList) Method

Populates a list with the items (both accessible and inaccessible to end-users) in a specified category and returns the number of items in this list.

Declaration

delphi
function GetAllItemsByCategory(ACategory: Integer; List: TList): Integer;

Parameters

NameType
ACategoryInteger
ListTList

Returns

Type
Integer

Remarks

This function clears the list passed as the List parameter and then populates it with the items of the category specified by the ACategory parameter. The GetAllItemsByCategory function returns the number of items within the list. If the specified category does not exist, the function returns 0 and an empty list.

Call the bar manager’s GetItemsByCategory function to return only the items that are currently accessible to end-users in the specified category.

See Also

TdxBarManager.GetItemByCategory

TdxBarManager.GetItemsByCategory

TdxBarManager Class

TdxBarManager Members

dxBar Unit