Spread for ASP.NET 7.0 Product Documentation
LineBorder Property
See Also  Example Support Options
FarPoint.Web.Chart Assembly > FarPoint.Web.Chart Namespace > LineSeries Class : LineBorder Property


Glossary Item Box

Gets or sets the line border for the series.

Syntax

Visual Basic (Declaration) 
Public Property LineBorder As Line
Visual Basic (Usage)Copy Code
Dim instance As LineSeries
Dim value As Line
 
instance.LineBorder = value
 
value = instance.LineBorder
C# 
public Line LineBorder {get; set;}

Remarks

Value of null (Nothing in VB) indicates that the line border is unset for the series.

Example

This example sets the LineBorder property.
C#Copy Code
FarPoint.Web.Chart.LineSeries series1 = new FarPoint.Web.Chart.LineSeries();
series1.PointMarker = new FarPoint.Web.Chart.BuiltinMarker(FarPoint.Web.Chart.MarkerShape.Circle, 7.0f);
series1.PointFill = new FarPoint.Web.Chart.GradientFill(System.Drawing.Color.Coral, System.Drawing.Color.Crimson);
series1.PointBorder = new FarPoint.Web.Chart.SolidLine(System.Drawing.Color.Yellow);
series1.LineBorder = new FarPoint.Web.Chart.SolidLine(System.Drawing.Color.Magenta);
series1.DropLinesVisible = true;
series1.DropLinesLine = new FarPoint.Web.Chart.SolidLine(System.Drawing.Color.BurlyWood);
series1.Values.Add(8.0);
series1.Values.Add(12.0);
series1.Values.Add(14.0);
series1.Values.Add(15.0);
FarPoint.Web.Chart.YPlotArea plotArea = new FarPoint.Web.Chart.YPlotArea();
plotArea.Location = new System.Drawing.PointF(0.2f, 0.2f);
plotArea.Size = new System.Drawing.SizeF(0.6f, 0.6f);
plotArea.Series.Add(series1);
FarPoint.Web.Chart.LabelArea labelArea = new FarPoint.Web.Chart.LabelArea();
labelArea.Location = new System.Drawing.PointF(0.5f, 0.02f);
labelArea.AlignmentX = 0.5f;
labelArea.AlignmentY = 0.0f;
labelArea.Text = "Chart";
FarPoint.Web.Chart.ChartModel model = new FarPoint.Web.Chart.ChartModel();
model.LabelAreas.Add(labelArea);
model.PlotAreas.Add(plotArea);
FarPoint.Web.Spread.Chart.SpreadChart chart = new FarPoint.Web.Spread.Chart.SpreadChart();
chart.Model = model;
FpSpread1.Sheets[0].Charts.Add(chart);
VB.NETCopy Code
Dim series1 As New FarPoint.Web.Chart.LineSeries()
series1.PointMarker = New FarPoint.Web.Chart.BuiltinMarker(FarPoint.Web.Chart.MarkerShape.Circle, 7.0F)
series1.PointFill = New FarPoint.Web.Chart.GradientFill(System.Drawing.Color.Coral, System.Drawing.Color.Crimson)
series1.PointBorder = New FarPoint.Web.Chart.SolidLine(System.Drawing.Color.Yellow)
series1.LineBorder = New FarPoint.Web.Chart.SolidLine(System.Drawing.Color.Magenta)
series1.DropLinesVisible = True
series1.DropLinesLine = New FarPoint.Web.Chart.SolidLine(System.Drawing.Color.BurlyWood)
series1.Values.Add(8.0)
series1.Values.Add(12.0)
series1.Values.Add(14.0)
series1.Values.Add(15.0)
Dim plotArea As New FarPoint.Web.Chart.YPlotArea()
plotArea.Location = New System.Drawing.PointF(0.2F, 0.2F)
plotArea.Size = New System.Drawing.SizeF(0.6F, 0.6F)
plotArea.Series.Add(series1)
Dim labelArea As New FarPoint.Web.Chart.LabelArea()
labelArea.Location = New System.Drawing.PointF(0.5F, 0.02F)
labelArea.AlignmentX = 0.5F
labelArea.AlignmentY = 0.0F
labelArea.Text = "Chart"
Dim model As New FarPoint.Web.Chart.ChartModel()
model.LabelAreas.Add(labelArea)
model.PlotAreas.Add(plotArea)
Dim chart As New FarPoint.Web.Spread.Chart.SpreadChart()
chart.Model = model
FpSpread1.Sheets(0).Charts.Add(chart)

Requirements

Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.