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

RepositoryItemTokenEdit.DropDownRowCount Property

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

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v19.2.dll

Declaration

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