PowerTools SPREAD for Windows Forms 8.0J
AddChart(Int32,Int32,Type,Int32,Int32,Int32,Int32) メソッド


行。
列。
系列のタイプ。
チャートの幅。
チャートの高さ。
x位置。
y位置。
チャートコントロールを追加します。
構文
'Declaration
 
Public Overloads Function AddChart( _
   ByVal row As Integer, _
   ByVal column As Integer, _
   ByVal seriesType As Type, _
   ByVal width As Integer, _
   ByVal height As Integer, _
   ByVal x As Integer, _
   ByVal y As Integer _
) As SpreadChart
'使用法
 
Dim instance As SheetView
Dim row As Integer
Dim column As Integer
Dim seriesType As Type
Dim width As Integer
Dim height As Integer
Dim x As Integer
Dim y As Integer
Dim value As SpreadChart
 
value = instance.AddChart(row, column, seriesType, width, height, x, y)
public SpreadChart AddChart( 
   int row,
   int column,
   Type seriesType,
   int width,
   int height,
   int x,
   int y
)

パラメータ

row
行。
column
列。
seriesType
系列のタイプ。
width
チャートの幅。
height
チャートの高さ。
x
x位置。
y
y位置。
解説
rowパラメーターは開始行インデックスを表し、columnパラメーターは開始列インデックスを表します。このメソッドは、これら2つのインデックスに基づいてセル範囲を自動検出します。seriesTypeパラメーターは、追加するチャートの種類を示します。chartWidthパラメーターとchartHeightパラメーターは、チャートのサイズ(幅と高さ)を指定します。絶対位置はxパラメーターとyパラメーターによって指定されます。
次のサンプルコードは、チャートコントロールを追加します。
fpSpread1.Sheets[0].AddChart(0, 0, typeof(FarPoint.Win.Chart.BarSeries), 400, 400, 0, 0);
FpSpread1.Sheets(0).AddChart(0, 0, GetType(FarPoint.Win.Chart.BarSeries), 400, 400, 0, 0)
参照

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

 

 


© 2004-2015, GrapeCity inc. All rights reserved.