AxisLabel.BeginText Property

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

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v20.2.dll

Declaration

[Browsable(false)]
[Obsolete("This property is now obsolete. Use the TextPattern property instead.")]
public string BeginText { get; set; }
<Browsable(False)>
<Obsolete("This property is now obsolete. Use the TextPattern property instead.")>
Public Property BeginText As String

Property Value

Type Description
String

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

Remarks

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

The postfix text for axis labels can be specified by the AxisLabel.EndText property.

Examples

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