All docs
V20.1
20.1
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

TileViewItemElement.MaxLineCount Property

Gets or sets the maximum number of displayed text lines (for text elements).

Namespace: DevExpress.XtraGrid.Views.Tile

Assembly: DevExpress.XtraGrid.v20.1.dll

Declaration

[DefaultValue(0)]
[DXCategory("Appearance")]
public int MaxLineCount { get; set; }
<DefaultValue(0)>
<DXCategory("Appearance")>
Public Property MaxLineCount As Integer

Property Value

Type Default Description
Int32

0

The maximum number of text lines for the current text elements. Zero, if the maximum value is limited by the template.

Remarks

If the current element displays text, you can use the MaxLineCount property to limit the maximum number of displayed text lines.

The following images demonstrates the use of the MaxLineCount property for a tile element that displays a lengthy description.

  • MaxLineCount = 0

  • MaxLineCount = 3

In Kanban layout mode, the TableRowDefinition.AutoHeight property allows you to enable the auto-height feature for tile template rows. You can use the MaxLineCount property to limit the number of displayed text lines, even in auto-height mode.

See Also