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

TcxMRUItems.Add(TcxMRUItem) Method

Adds an item to the current MRU list.

#Declaration

Delphi
procedure Add(AItem: TcxMRUItem);

#Parameters

Name Type
AItem TcxMRUItem

#Remarks

Prior to adding the item specified by the AItem parameter to the current MRU list, the Add method determines whether the item is already in the list. If the list contains the item, it is moved to the topmost position (with index equal to 0). Otherwise, the item is added to the MRU list at the topmost position thus enlarging the number of items within it. This takes place until the number of items reaches the MaxCount property’s value. Furthermore, adding an item results in this item being added to the top of the MRU list and deleting the bottom item in that list.

Use the Count property to determine the number of items within the current MRU list. To determine the position of a specific item within the MRU list, call the IndexOf function.

See Also