Skip to main content

RepositoryItemTokenEdit.DropDownRowCount Property

Gets or sets the maximum number of drop-down menu items for this TokenEdit.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[DefaultValue(7)]
[DXCategory("Appearance")]
public int DropDownRowCount { get; set; }

Property Value

Type Default Description
Int32 7

An Int32 value that is the maximum number of drop-down menu items for this TokenEdit.

Remarks

The TokenEdit control can display a drop-down list that shows all TokenEditToken objects (see the RepositoryItemTokenEdit.Tokens property) that match the currently entered end-user text. The DropDownRowCount property allows you to specify this drop-down list height by setting the maximum lines number this list can display. The image below illustrates a Token Edit drop-down list limited to 2 items in height.

TokenEdit - Max DropDown Menu Items

You can also use the static RepositoryItemTokenEdit.DefaultDropDownRowCount field to get the default drop-down list height, which is 7 lines.

To disable the drop-down history list, set the RepositoryItemTokenEdit.ShowDropDown property to false.

See Also