Skip to main content

RepositoryItemTokenEdit.MaxTokenCount Property

Gets or sets the maximum tokens number this TokenEdit control can simultaneously display.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[DefaultValue(-1)]
[DXCategory("Behavior")]
public int MaxTokenCount { get; set; }

Property Value

Type Default Description
Int32 -1

An Int32 value that is the maximum tokens number this TokenEdit control can simultaneously display.

Remarks

End-users can add tokens to the TokenEdit control for as long as their count stays below the number specified by the MaxTokenCount property. Once this number is reached, end-users cannot add new tokens unless one or more previously added tokens are removed.

The default MaxTokenCount property value equals -1, which means the token count is unlimited.

See Also