AxisLabel.BeginText Property
OBSOLETE
This property is now obsolete. Use the TextPattern property instead.
Namespace: DevExpress.XtraCharts
Assembly: DevExpress.XtraCharts.v24.2.dll
Declaration
[Browsable(false)]
[Obsolete("This property is now obsolete. Use the TextPattern property instead.")]
public string BeginText { get; set; }
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.
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