Skip to main content
A newer version of this page is available. .

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.v19.2.dll

Declaration

[DXCategory("Behavior")]
[DefaultValue(0)]
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