Skip to main content
All docs
V25.1
  • DevExpress v25.1 Update — Your Feedback Matters

    Our What's New in v25.1 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

    Take the survey Not interested

    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.1.dll

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

    #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