AxisLabel3DItem.TextPosition Property

Gets or sets a value that specifies the position of axis label items relative to the axis in 3D series.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v20.1.dll

Declaration

[XtraChartsLocalizableCategory(XtraChartsCategory.Layout)]
public AxisLabel3DPosition TextPosition { get; set; }
<XtraChartsLocalizableCategory(XtraChartsCategory.Layout)>
Public Property TextPosition As AxisLabel3DPosition

Property Value

Type Description
AxisLabel3DPosition

An AxisLabel3DPosition enumeration value, which specifies the position of axis label items relative to the axis.

Remarks

Use the TextPosition property to position an individual axis label item (after it is obtained in the special ChartControl.CustomDrawAxisLabel or WebChartControl.CustomDrawAxisLabel event handler).

Refer to the AxisLabel3DPosition enumeration's description for a list of the available label positions.

Examples

The following code demonstrates how to change the position and angle of an individual AxisLabel3DItem, which is obtained in the special ChartControl.CustomDrawAxisLabel (or, WebChartControl.CustomDrawAxisLabel) event handler.

using DevExpress.XtraCharts;
// ...

private void chartControl1_CustomDrawAxisLabel(object sender, 
CustomDrawAxisLabelEventArgs e) {
    ((AxisLabel3DItem)e.Item).Angle = -30;
    ((AxisLabel3DItem)e.Item).Antialiasing = true;
    ((AxisLabel3DItem)e.Item).TextPosition = AxisLabel3DPosition.Right;
}
See Also