Skip to main content

TcxMRUItems.Add(TcxMRUItem) Method

Adds an item to the current MRU list.

Declaration

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