Skip to main content

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.v24.2.dll

Declaration

[DefaultValue(4)]
[DXCategory("Behavior")]
public int MaxExpandLines { get; set; }

Property Value

Type Default Description
Int32 4

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

Remarks

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.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the MaxExpandLines property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also