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.MaxCount Property

Specifies the maximum number of items stored within the current MRU list.

#Declaration

Delphi
property MaxCount: Integer read; write;

#Property Value

Type
Integer

#Remarks

To limit the maximum number of items stored within the current MRU list up to a specific value, set the MaxCount property to a value greater than 0. As a result, adding the items via the Add method will not expand the list’s capacity.

Setting the MaxCount property to 0 indicates that the current MRU list’s capacity is unlimited.

Use the Count property to determine the number of items within the current MRU list.

You can decrease the number of items by setting the MaxCount property to a value which is less than the current Count property value. All the items with an index less than the new Count property value will be retained, while all other items will be deleted.

See Also