Back to Devexpress

RepositoryItemTokenEdit.DropDownRowCount Property

windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitemtokenedit-d31f797a.md

latest2.7 KB
Original Source

RepositoryItemTokenEdit.DropDownRowCount Property

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

Namespace : DevExpress.XtraEditors.Repository

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(7)]
[DXCategory("Appearance")]
public int DropDownRowCount { get; set; }
vb
<DXCategory("Appearance")>
<DefaultValue(7)>
Public Property DropDownRowCount As Integer

Property Value

TypeDefaultDescription
Int327

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.

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

ShowDropDown

Tokens

RepositoryItemTokenEdit Class

RepositoryItemTokenEdit Members

DevExpress.XtraEditors.Repository Namespace