Skip to main content

TotalLabel.MaxWidth Property

Gets or sets the maximum width allowed for a total label.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v24.1.dll

NuGet Package: DevExpress.Charts

Declaration

[XtraChartsLocalizableCategory(XtraChartsCategory.Behavior)]
[XtraSerializableProperty]
public int MaxWidth { get; set; }

Property Value

Type Description
Int32

The maximum label width. By default, it is set to 0, which means that label width is unlimited.

Remarks

If the MaxWidth property value limits the total labels’ width or if an axis label’s text contains new line characters, its text is split across multiple lines. In this case, the TotalLabel.MaxLineCount property helps you control the number of allowed text lines when axis labels are too lengthy.

Note that if a label’s length exceeds the limit that the AxisLabel.MaxLineCount property defines, the last line of text is cut off by an ellipsis. To force an axis label to fully display its contents without regard to a label’s size, set the AxisLabel.MaxLineCount property to 0.

See Also