Articles in this section
Category / Section

How to set Border for Chart Area?

1 min read

 

By using ChartAreaBorderStyle class, we can apply border styles, color for the border and also we can increase the width of the border.

C#

// Setting Border for the Chart Area

this.chartControl1.ChartArea.BorderStyle = BorderStyle.Fixed3D;

this.chartControl1.ChartArea.BorderColor = Color.LightPink;

this.chartControl1.ChartArea.BorderWidth = 2;

VB

' Setting Border for the Chart Area

Me.chartControl1.ChartArea.BorderStyle = BorderStyle.Fixed3D

Me.chartControl1.ChartArea.BorderColor = Color.LightPink

Me.chartControl1.ChartArea.BorderWidth = 2

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied