Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ChartControl.BorderOptions Property

Gets the chart control’s border style.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v24.2.UI.dll

NuGet Package: DevExpress.Win.Charts

#Declaration

public RectangularBorder BorderOptions { get; }

#Property Value

Type Description
RectangularBorder

A RectangularBorder object which specifies the border style.

#Remarks

Use the BorderOptions property to specify border color, thickness, and visibility.

Chart Border

The following example configures chart border settings:

chartControl1.BorderOptions.Thickness = 2;
chartControl1.BorderOptions.Color = System.Drawing.Color.DarkGray;

You can also customize border settings for series views. To do this, use a series view’s Border property. For example, define the PieSeriesView.Border property to specify the border drawn around the pie.

See Also