A newer version of this page is available. Switch to the current version.

SeriesLabelBase.MaxWidth Property

Gets or sets the maximum width allowed for series labels.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v18.2.dll


public int MaxWidth { get; set; }
Public Property MaxWidth As Integer

Property Value

Type Description

An integer value that specifies the maximum label width. By default, it is set to 0, which means that label width is unlimited.


When the width of series labels is limited by the MaxWidth property value or if a series label's text contains new line characters, its text is split across multiple lines. In this case, the SeriesLabelBase.MaxLineCount property helps you control the number of allowed text lines when series labels are too lengthy.

Note that if a label's length exceeds the limit defined by the SeriesLabelBase.MaxLineCount property, 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 SeriesLabelBase.MaxLineCount property to 0.


See Also