FarPoint.Win.SpreadJ アセンブリ > FarPoint.Win.Spread.Chart 名前空間 > SpreadChart クラス > SpreadChart コンストラクタ : SpreadChart コンストラクタ(String,String,String,Type,Point,Size,ChartViewType,Boolean) |
true
に設定した場合、凡例が表示されます。
'Declaration
Public Function New( _ ByVal categoryFormula As String, _ ByVal nameFormula As String, _ ByVal dataFormula As String, _ ByVal seriesType As Type, _ ByVal location As Point, _ ByVal size As Size, _ ByVal viewType As ChartViewType, _ ByVal showLegend As Boolean _ )
'使用法
Dim categoryFormula As String Dim nameFormula As String Dim dataFormula 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(categoryFormula, nameFormula, dataFormula, seriesType, location, size, viewType, showLegend)
public SpreadChart( string categoryFormula, string nameFormula, string dataFormula, Type seriesType, Point location, Size size, ChartViewType viewType, bool showLegend )
true
に設定した場合、凡例が表示されます。fpSpread1.Sheets[0].Cells[0, 0].Value = 3; fpSpread1.Sheets[0].Cells[1, 1].Value = 7; fpSpread1.Sheets[0].Cells[3, 3].Value = 5; Point loc = new Point(20, 30); Size size = new Size(300, 400); FarPoint.Win.Spread.Chart.SpreadChart chart = new FarPoint.Win.Spread.Chart.SpreadChart("Sheet1!$A$2:$A$7", "Sheet1!$B$1:$D$1", "Sheet1!$B$2:$D$7", typeof(FarPoint.Win.Chart.BarSeries), loc, size,FarPoint.Win.Chart.ChartViewType.View2D, false); fpSpread1.Sheets[0].Charts.Add(chart);
FpSpread1.Sheets(0).Cells(0, 0).Value = 3 FpSpread1.Sheets(0).Cells(1, 1).Value = 7 FpSpread1.Sheets(0).Cells(3, 3).Value = 5 Dim loc As New Point(20, 30) Dim size As New Size(300, 400) Dim chart As New FarPoint.Win.Spread.Chart.SpreadChart("Sheet1!$A$2:$A$7", "Sheet1!$B$1:$D$1", "Sheet1!$B$2:$D$7", GetType(FarPoint.Win.Chart.BarSeries), loc, size, FarPoint.Win.Chart.ChartViewType.View2D, False) FpSpread1.Sheets(0).Charts.Add(chart)