Skip to main content

TileViewItemElement.MaxLineCount Property

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

Namespace: DevExpress.XtraGrid.Views.Tile

Assembly: DevExpress.XtraGrid.v24.2.dll

Declaration

[DefaultValue(0)]
[DXCategory("Appearance")]
public int MaxLineCount { get; set; }

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.

image

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

  • MaxLineCount = 0

    image

  • MaxLineCount = 3

    image

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