TotalLabel.MaxLineCount Property
Gets or sets the maximum number of lines to which a label’s text is allowed to wrap.
Namespace: DevExpress.XtraCharts
Assembly: DevExpress.XtraCharts.v24.1.dll
NuGet Package: DevExpress.Charts
Declaration
[XtraChartsLocalizableCategory(XtraChartsCategory.Behavior)]
[XtraSerializableProperty]
public int MaxLineCount { get; set; }
Property Value
Type | Description |
---|---|
Int32 | The maximum count of text lines. Should be greater than or equal to 0 and less than or equal to 20. |
Remarks
If the SeriesLabelBase.MaxWidth property value limits the total labels’ width or if a total label’s text contains new line characters, its text is split across multiple lines. In this case, the MaxLineCount property helps you control the number of text lines allowed when series labels are too lengthy.
Note that if a label’s length exceeds the limit that the MaxLineCount property defines, the last line of text will be cut off by an ellipsis. To force a series label to fully display its contents, without regard to the label’s size, set the MaxLineCount property to 0.