MESCIUS SPREAD for Windows Forms 15.0J
SpreadChart コンストラクタ(String,String,String,Type,Point,Size)
使用例 

分類の数式。
名前の数式。
データの数式。
系列のタイプ。
位置。
サイズ。
SpreadChart クラスの新しいインスタンスを初期化します。
構文
'宣言
 
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 _
)

パラメータ

categoryFormula
分類の数式。
nameFormula
名前の数式。
dataFormula
データの数式。
seriesType
系列のタイプ。
location
位置。
size
サイズ。
解説
categoryFormulaは、軸タイトル用の数式です。nameFormulaは、系列の名前(SeriesName)用の数式です。dataFormulaは、各系列の実際のデータ用の数式です。seriesTypeパラメーターは、追加するチャートの種類を示します。locationパラメーターとsizeパラメーターは、チャートの位置とサイズ(幅と高さ)を指定します。
使用例
次のサンプルコードは、チャートを作成します。
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);
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)
fpSpread1.Sheets(0).Charts.Add(chart)
参照

SpreadChart クラス
SpreadChart メンバ
オーバーロード一覧

 

 


© MESCIUS inc. All rights reserved.