Back to Devexpress

AxisLabelResolveOverlappingOptions.AllowStagger Property

corelibraries-devexpress-dot-xtracharts-dot-axislabelresolveoverlappingoptions-f045c59d.md

latest6.1 KB
Original Source

AxisLabelResolveOverlappingOptions.AllowStagger Property

Gets or sets a value indicating whether or not to stagger axis labels when resolving overlapping labels.

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

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

Property Value

TypeDescription
Boolean

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

|

Property Paths

You can access this nested property as listed below:

Object TypePath to AllowStagger
AxisLabel

.ResolveOverlappingOptions .AllowStagger

|

Remarks

The following table demonstrates this property in action.

AllowStagger = falseAllowStagger = true

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

Note

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

For more information about overlapping axis label resolution, refer to the Axis Labels document.

The following code snippets (auto-collected from DevExpress Examples) contain references to the AllowStagger 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#L31

csharp
diagram.AxisX.Label.ResolveOverlappingOptions.AllowRotate = false;
diagram.AxisX.Label.ResolveOverlappingOptions.AllowStagger = false;
diagram.AxisX.WholeRange.SideMarginsValue = 0;

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

csharp
diagram.AxisX.Label.ResolveOverlappingOptions.AllowRotate = false;
diagram.AxisX.Label.ResolveOverlappingOptions.AllowStagger = false;
diagram.AxisX.VisualRange.EndSideMargin = 200;

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

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

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

vb
diagram.AxisX.Label.ResolveOverlappingOptions.AllowRotate = False
diagram.AxisX.Label.ResolveOverlappingOptions.AllowStagger = False
diagram.AxisX.WholeRange.SideMarginsValue = 0

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

vb
diagram.AxisX.Label.ResolveOverlappingOptions.AllowRotate = False
diagram.AxisX.Label.ResolveOverlappingOptions.AllowStagger = False
diagram.AxisX.VisualRange.EndSideMargin = 200

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

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

See Also

AxisLabelResolveOverlappingOptions Class

AxisLabelResolveOverlappingOptions Members

DevExpress.XtraCharts Namespace