Back to Devexpress

ChartControl.BorderOptions Property

windowsforms-devexpress-dot-xtracharts-dot-chartcontrol-7886c5ea.md

latest1.9 KB
Original Source

ChartControl.BorderOptions Property

Gets the chart control’s border style.

Namespace : DevExpress.XtraCharts

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

NuGet Package : DevExpress.Win.Charts

Declaration

csharp
public RectangularBorder BorderOptions { get; }
vb
Public ReadOnly Property BorderOptions As RectangularBorder

Property Value

TypeDescription
RectangularBorder

A RectangularBorder object which specifies the border style.

|

Remarks

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

The following example configures chart border settings:

csharp
chartControl1.BorderOptions.Thickness = 2;
chartControl1.BorderOptions.Color = System.Drawing.Color.DarkGray;
vb
chartControl1.BorderOptions.Thickness = 2
chartControl1.BorderOptions.Color = 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

ChartControl Class

ChartControl Members

DevExpress.XtraCharts Namespace