Back to Devexpress

SeriesLabelBase.ResolveOverlappingMinIndent Property

corelibraries-devexpress-dot-xtracharts-dot-serieslabelbase-3fb4a6cf.md

latest4.2 KB
Original Source

SeriesLabelBase.ResolveOverlappingMinIndent Property

Gets or sets the minimum indent between adjacent series labels, when an overlapping resolving algorithm is applied to them.

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

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

Property Value

TypeDescription
Int32

An integer value, which specifies the minimum indent, in pixels.

|

Remarks

After an overlapping resolving mode is applied to series labels (via the SeriesLabelBase.ResolveOverlappingMode property), you can use the ResolveOverlappingMinIndent property to define the minimum indent between adjacent series labels.

Note

The ResolveOverlappingMinIndent property affects labels of all chart series whose SeriesLabelBase.ResolveOverlappingMode property’s value differs from None. Because the ResolveOverlappingMinIndent property value is initialized at the chart diagram level, it is not initialized until a newly created Series item is added to the ChartControl.Series collection.

It also means that this property value is shared with the StackedBarTotalLabel.ResolveOverlappingMinIndent property.

The following images demonstrate the ResolveOverlappingMinIndent property in action (with the SeriesLabelBase.ResolveOverlappingMode set to JustifyAroundPoint ).

The property valuesThe resulting images
ResolveOverlappingMinIndent = -1
ResolveOverlappingMinIndent = 10

For more information, refer to Series Point Labels.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ResolveOverlappingMinIndent 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-chart-create-a-doughnut-chart/VB/Series_DoughnutChart/Form1.vb#L38

vb
CType(series1.Label, DoughnutSeriesLabel).ResolveOverlappingMode = ResolveOverlappingMode.Default
CType(series1.Label, DoughnutSeriesLabel).ResolveOverlappingMinIndent = 5
' Adjust the view-type-specific options of the series.

See Also

SeriesLabelBase Class

SeriesLabelBase Members

DevExpress.XtraCharts Namespace