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


チャートで使用されるデータの範囲。
系列のタイプ。
チャートの幅。
チャートの高さ。
x位置。
y位置。
チャートコントロールを追加します。
構文
'Declaration
 
Public Overloads Function AddChart( _
   ByVal cellRange As CellRange, _
   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 cellRange As CellRange
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(cellRange, seriesType, width, height, x, y)
public SpreadChart AddChart( 
   CellRange cellRange,
   Type seriesType,
   int width,
   int height,
   int x,
   int y
)

パラメータ

cellRange
チャートで使用されるデータの範囲。
seriesType
系列のタイプ。
width
チャートの幅。
height
チャートの高さ。
x
x位置。
y
y位置。
解説
cellRangeパラメーターは、チャートで使用されるデータを示します。seriesTypeパラメーターは、追加するチャートの種類を示します。chartWidthパラメーターとchartHeightパラメーターは、チャートのサイズ(幅と高さ)を指定します。絶対位置はxパラメーターとyパラメーターによって指定されます。
次のサンプルコードは、チャートコントロールをSPREADに追加します。
FarPoint.Win.Spread.Model.CellRange range = new FarPoint.Win.Spread.Model.CellRange(0, 0, 7, 4);
fpSpread1.Sheets[0].AddChart(range, typeof(FarPoint.Win.Chart.BarSeries), 400, 300, 0, 0);
Dim range As New FarPoint.Win.Spread.Model.CellRange(0, 0, 7, 4)
FpSpread1.Sheets(0).AddChart(range, GetType(FarPoint.Win.Chart.BarSeries), 400, 300, 0, 0)
参照

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

 

 


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