Back to Devexpress

TileViewItemElement.MaxLineCount Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-tile-dot-tileviewitemelement-082fe65c.md

latest2.3 KB
Original Source

TileViewItemElement.MaxLineCount Property

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

Namespace : DevExpress.XtraGrid.Views.Tile

Assembly : DevExpress.XtraGrid.v25.2.dll

NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

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

Property Value

TypeDefaultDescription
Int320

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

AutoHeight

TileViewItemElement Class

TileViewItemElement Members

DevExpress.XtraGrid.Views.Tile Namespace