Skip to main content

RepositoryItemMRUEdit.MaxItemCount Property

Gets or sets the maximum number of items displayed in the editor’s dropdown list.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[DefaultValue(0)]
[DXCategory("Behavior")]
public virtual int MaxItemCount { get; set; }

Property Value

Type Default Description
Int32 0

An integer value specifying the maximum number of items contained by the MRU editor.

Remarks

Use the MaxItemCount property to define the maximum number of items which a MRU editor can represent. To access the list of items programmatically, read the RepositoryItemComboBox.Items property.

If the MaxItemCount property is set to 0 (the default behavior), the number of items to be maintained by a MRU editor is unlimited. A new value is stored as a new item within the dropdown list when input is confirmed. A new most recently used item is placed at the top of the list by replacing an existing item or shifting them down.

You can specify the number of items displayed in the dropdown window by using the RepositoryItemComboBox.DropDownRows property.

See Also