A newer version of this page is available. Switch to the current version.

RepositoryItemTokenEdit.MaxExpandLines Property

Gets or sets the maximum number of lines this TokenEdit can occupy. This property is ignored if the editor is used in-place.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v19.1.dll


public int MaxExpandLines { get; set; }

Property Value

Type Default Description


An Int32 value that is the maximum number of lines this TokenEdit can occupy.


If there is insufficient space to display all the required content, the TokenEdit can stretch vertically until it reaches the lines number specified by the MaxExpandLines property. If the editor needs more lines, it displays scroll bars to scroll through its lines. This behavior is only applied if the RepositoryItemTokenEdit.AutoHeightMode property equals TokenEditAutoHeightMode.RestrictedExpand. Otherwise, if this property has the TokenEditAutoHeightMode.Expand value, the MaxExpandLines property value is ignored. In this case, the TokenEdit can expand infinitely.

The MaxExpandLines property is in effect only for standalone Token Editors.

See the Token Edit Control topic to learn more.

See Also