Spread for ASP.NET 9.0 Product Documentation
Setting the Chart Control Border in Spread

You can specify the color, type, and size of the border that goes around the edge of the Chart control.

Chart Border

Using Code

  1. To set the border color, set BorderColor in the SpeadChart class.
  2. To set the border style, set BorderStyle in the SpeadChart class.
  3. To set the border width, set BorderWidth in the SpeadChart class.

Example

The following example creates an orange border around the Chart control.

C#
Copy Code
FarPoint.Web.Spread.Chart.SpreadChart chart = new FarPoint.Web.Spread.Chart.SpreadChart;
chart.BorderColor = Drawing.Color.DarkOrange;
chart.BorderStyle = BorderStyle.Solid;
chart.BorderWidth = 3;
fpSpread1.Sheets[0].Charts.Add(chart);
VB
Copy Code
Dim chart As New FarPoint.Web.Spread.Chart.SpreadChart()
chart.BorderColor = Drawing.Color.DarkOrange
chart.BorderStyle = BorderStyle.Solid
chart.chart.BorderWidth = 3
FpSpread1.Sheets(0).Charts.Add(chart)

 

 


Copyright © GrapeCity, inc. All rights reserved.

Support Options | Documentation Feedback