Back to Devexpress

AxisLabel.ResolveOverlappingOptions Property

corelibraries-devexpress-dot-xtracharts-dot-axislabel-dfad673b.md

latest3.3 KB
Original Source

AxisLabel.ResolveOverlappingOptions Property

Provides access to the options that define how to resolve overlapping axis labels.

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
[PersistenceMode(PersistenceMode.InnerProperty)]
[XtraChartsLocalizableCategory(XtraChartsCategory.Behavior)]
public AxisLabelResolveOverlappingOptions ResolveOverlappingOptions { get; }
vb
<XtraChartsLocalizableCategory(XtraChartsCategory.Behavior)>
<PersistenceMode(PersistenceMode.InnerProperty)>
Public ReadOnly Property ResolveOverlappingOptions As AxisLabelResolveOverlappingOptions

Property Value

TypeDescription
AxisLabelResolveOverlappingOptions

An AxisLabelResolveOverlappingOptions object.

|

Example

The Chart Control uses the built-in Resolve overlapping algorithm to rearrange labels to avoid overlaps. This examples demonstrates how to use the ResolveOverlappingOptions to fine-tune the Resolve Overlapping algorithm:

csharp
AxisLabel axisLabel = ((XYDiagram)chartControl.Diagram).AxisX.Label;

axisLabel.ResolveOverlappingOptions.AllowHide = true;
axisLabel.ResolveOverlappingOptions.AllowRotate = true;
axisLabel.ResolveOverlappingOptions.AllowStagger = true;
axisLabel.ResolveOverlappingOptions.MinIndent = 5;
vb
Dim axisLabel As AxisLabel = CType(chartControl.Diagram,XYDiagram).AxisX.Label
axisLabel.ResolveOverlappingOptions.AllowHide = true
axisLabel.ResolveOverlappingOptions.AllowRotate = true
axisLabel.ResolveOverlappingOptions.AllowStagger = true
axisLabel.ResolveOverlappingOptions.MinIndent = 5

The example above uses the following API members:

MemberDescription
AxisLabelResolveOverlappingOptions.AllowHideGets or sets a value indicating whether or not to hide axis labels when resolving any overlap.
AxisLabelResolveOverlappingOptions.AllowRotateGets or sets the value that indicates whether or not to rotate axis labels when resolving overlapping labels.
AxisLabelResolveOverlappingOptions.AllowStaggerGets or sets a value indicating whether or not to stagger axis labels when resolving overlapping labels.
AxisLabel.ResolveOverlappingOptionsProvides access to the options that define how to resolve overlapping axis labels.

See Also

AxisLabel Class

AxisLabel Members

DevExpress.XtraCharts Namespace