Back to Devexpress

AxisLabelResolveOverlappingOptions.AllowRotate Property

corelibraries-devexpress-dot-xtracharts-dot-axislabelresolveoverlappingoptions-7a560982.md

latest6.2 KB
Original Source

AxisLabelResolveOverlappingOptions.AllowRotate Property

Gets or sets the value that indicates whether or not to rotate axis labels when resolving overlapping labels.

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
public bool AllowRotate { get; set; }
vb
Public Property AllowRotate As Boolean

Property Value

TypeDescription
Boolean

true , if rotating axis labels is allowed; otherwise, false.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to AllowRotate
AxisLabel

.ResolveOverlappingOptions .AllowRotate

|

Remarks

The following images demonstrate this property in action.

AllowRotate = falseAllowRotate = true

Use the AxisLabelResolveOverlappingOptions.AllowStagger, AllowRotate and AxisLabelResolveOverlappingOptions.AllowHide properties to define which algorithms can be used when resolving overlapping axis labels.

Note

The AllowRotate and AxisLabelResolveOverlappingOptions.AllowStagger properties only affect labels of a horizontal XY-Diagram axis (an arguments x-axis or values y-axis when XYDiagram.Rotated is enabled).

Refer to the Axis Labels document for more detail about axis labels.

The following code snippets (auto-collected from DevExpress Examples) contain references to the AllowRotate property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-charts-create-real-time-chart/CS/RealTimeChartUpdates/Form1.cs#L30

csharp
diagram.AxisX.DateTimeScaleOptions.ScaleMode = ScaleMode.Continuous;
diagram.AxisX.Label.ResolveOverlappingOptions.AllowRotate = false;
diagram.AxisX.Label.ResolveOverlappingOptions.AllowStagger = false;

winforms-charts-create-real-time-chart-and-collect-data-in-separate-thread/CS/RealTimeChartUpdates/Form1.cs#L39

csharp
diagram.AxisX.DateTimeScaleOptions.ScaleMode = ScaleMode.Continuous;
diagram.AxisX.Label.ResolveOverlappingOptions.AllowRotate = false;
diagram.AxisX.Label.ResolveOverlappingOptions.AllowStagger = false;

winforms-heatmap-bind-to-data-source/CS/Form1.cs#L67

csharp
heatmap.AxisX.Label.ResolveOverlappingOptions.AllowStagger = false;
heatmap.AxisX.Label.ResolveOverlappingOptions.AllowRotate = false;
heatmap.AxisX.Label.ResolveOverlappingOptions.AllowHide = false;

winforms-charts-create-real-time-chart/VB/RealTimeChartUpdates/Form1.vb#L34

vb
diagram.AxisX.DateTimeScaleOptions.ScaleMode = ScaleMode.Continuous
diagram.AxisX.Label.ResolveOverlappingOptions.AllowRotate = False
diagram.AxisX.Label.ResolveOverlappingOptions.AllowStagger = False

winforms-charts-create-real-time-chart-and-collect-data-in-separate-thread/VB/RealTimeChartUpdates/Form1.vb#L49

vb
diagram.AxisX.DateTimeScaleOptions.ScaleMode = ScaleMode.Continuous
diagram.AxisX.Label.ResolveOverlappingOptions.AllowRotate = False
diagram.AxisX.Label.ResolveOverlappingOptions.AllowStagger = False

winforms-heatmap-bind-to-data-source/VB/Form1.vb#L45

vb
Me.heatmap.AxisX.Label.ResolveOverlappingOptions.AllowStagger = False
Me.heatmap.AxisX.Label.ResolveOverlappingOptions.AllowRotate = False
Me.heatmap.AxisX.Label.ResolveOverlappingOptions.AllowHide = False

See Also

AxisLabelResolveOverlappingOptions Class

AxisLabelResolveOverlappingOptions Members

DevExpress.XtraCharts Namespace