FarPoint.Web.Spread Assembly > FarPoint.Web.Spread.Chart Namespace > SpreadChart Class > SpreadChart Constructor : SpreadChart Constructor(String,Type,Point,Size,ChartViewType,Boolean) |
true
[show legend].
'Declaration Public Function New( _ ByVal formula As String, _ ByVal seriesType As Type, _ ByVal location As Point, _ ByVal size As Size, _ ByVal viewType As ChartViewType, _ ByVal showLegend As Boolean _ )
'Usage Dim formula As String Dim seriesType As Type Dim location As Point Dim size As Size Dim viewType As ChartViewType Dim showLegend As Boolean Dim instance As New SpreadChart(formula, seriesType, location, size, viewType, showLegend)
public SpreadChart( string formula, Type seriesType, Point location, Size size, ChartViewType viewType, bool showLegend )
true
[show legend].FpSpread1.Sheets[0].RowCount = 10; FpSpread1.Sheets[0].ColumnCount = 10; FpSpread1.Sheets[0].Cells[0, 0].Value = 3; FpSpread1.Sheets[0].Cells[1, 1].Value = 7; FpSpread1.Sheets[0].Cells[2, 2].Value = 7; FpSpread1.Sheets[0].Cells[3, 3].Value = 5; System.Drawing.Point loc = new System.Drawing.Point(20, 30); System.Drawing.Size size = new System.Drawing.Size(200, 300); FarPoint.Web.Spread.Chart.SpreadChart chart = new FarPoint.Web.Spread.Chart.SpreadChart("Sheet1!$A$1:$D$7", typeof(FarPoint.Web.Chart.BarSeries),loc,size, FarPoint.Web.Chart.ChartViewType.View2D, false); FpSpread1.Sheets[0].Charts.Add(chart);
FpSpread1.Sheets(0).RowCount = 10 FpSpread1.Sheets(0).ColumnCount = 10 FpSpread1.Sheets(0).Cells(0, 0).Value = 3 FpSpread1.Sheets(0).Cells(1, 1).Value = 7 FpSpread1.Sheets(0).Cells(2, 2).Value = 7 FpSpread1.Sheets(0).Cells(3, 3).Value = 5 Dim loc As New System.Drawing.Point(20, 30) Dim size As New System.Drawing.Size(200, 300) Dim chart As New FarPoint.Web.Spread.Chart.SpreadChart("Sheet1!$A$1:$D$7", GetType(FarPoint.Web.Chart.BarSeries), loc, size, FarPoint.Web.Chart.ChartViewType.View2D, False) FpSpread1.Sheets(0).Charts.Add(chart)
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