Skip to main content

AxisLabel.EndText Property

OBSOLETE

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.v24.1.dll

NuGet Package: DevExpress.Charts

Declaration

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

Property Value

Type Description
String

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

Remarks

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.

Example

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