SeriesLabelBase.MaxWidth Property

Gets or sets the maximum width allowed for series labels.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v20.1.dll

Declaration

[XtraChartsLocalizableCategory(XtraChartsCategory.Behavior)]
public int MaxWidth { get; set; }
<XtraChartsLocalizableCategory(XtraChartsCategory.Behavior)>
Public Property MaxWidth As Integer

Property Value

Type Description
Int32

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

Remarks

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.

Implements

DevExpress.XtraCharts.Native.ISeriesLabelPropertiesProvider.MaxWidth
See Also