Skip to main content

AxisLabel.EndText Property


This property is now obsolete. Use the TextPattern property instead.

Gets or sets the postfix for labels which will be displayed within the corresponding axis.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v22.2.dll

NuGet Package: DevExpress.Charts


[Obsolete("This property is now obsolete. Use the TextPattern property instead.")]
public string EndText { get; set; }

Property Value

Type Description

A String value that specifies the common postfix for labels within an axis.


Use the EndText property to specify the common postfix text that will be displayed within axis labels along with their default values. Note that the EndText property is in effect only for the default labels of an axis and doesn’t affect the display values of its custom labels.

A prefix text for axis labels can be specified by the AxisLabel.BeginText property.


This example demonstrates how to access and customize axis labels.

// Cast the chart's diagram to the XYDiagram type, to access its axes.
XYDiagram diagram = (XYDiagram)chartControl1.Diagram;

// Customize the X-axis labels' appearance.
diagram.AxisX.Label.Angle = -30;
diagram.AxisX.Label.Staggered = true;
diagram.AxisX.Label.TextColor = Color.Bisque;

// As opposed to the above properties, the following ones
// will not affect custom labels, if they exist for the axes.
diagram.AxisX.Label.BeginText = "Some prefix ";
diagram.AxisX.Label.EndText = " some postfix.";
See Also