Spread for ASP.NET 7.0 Product Documentation
Setting the Chart Control Border in Spread
Support Options
Spread for ASP.NET 7.0 Product Documentation > Developer's Guide > Working with the Chart Control > Creating Charts > Using the Chart Control in Spread > Setting the Chart Control Border in Spread

Glossary Item Box

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)
© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.