Back to Devexpress

AxisLabel3DItem.Angle Property

corelibraries-devexpress-dot-xtracharts-dot-axislabel3ditem-6cba05db.md

latest3.4 KB
Original Source

AxisLabel3DItem.Angle Property

Gets or sets the angle by which the text of a 3D XY-Diagram‘s axis label item is rotated.

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
[XtraChartsLocalizableCategory(XtraChartsCategory.Layout)]
public int Angle { get; set; }
vb
<XtraChartsLocalizableCategory(XtraChartsCategory.Layout)>
Public Property Angle As Integer

Property Value

TypeDescription
Int32

An integer value specifying the angle, in degrees, by which the axis label item’s text is rotated.

|

Remarks

Use the Angle property to rotate an individual axis label item (after it is obtained in the special ChartControl.CustomDrawAxisLabel or WebChartControl.CustomDrawAxisLabel event handler). The angle is measured in degrees, counterclockwise from the horizontal.

The Angle property is in effect for the diagram types that inherit the XYDiagram3D class. For diagram types that inherit the 2D-XYDiagram class, the similar AxisLabelItem.Angle is intended.

Example

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.

csharp
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;
}
vb
Imports DevExpress.XtraCharts
' ...

Private Sub chartControl1_CustomDrawAxisLabel(ByVal sender As Object, _ 
ByVal e As CustomDrawAxisLabelEventArgs) Handles chartControl1.CustomDrawAxisLabel
    CType(e.Item, AxisLabel3DItem).Angle = -30
    CType(e.Item, AxisLabel3DItem).Antialiasing = True
    CType(e.Item, AxisLabel3DItem).TextPosition = AxisLabel3DPosition.Right
End Sub

See Also

XY-Diagram 3D

Axis Labels

AxisLabel3DItem Class

AxisLabel3DItem Members

DevExpress.XtraCharts Namespace