GrapeCity SPREAD for Windows Forms 12.0J
MultiOptionCellType コンストラクタ(MultiOptionCellType)


コピー元のマルチオプション セル型
指定したセル型から新しいコピーを作成します(コピーコンストラクター)。
構文
'Declaration
 
Public Function New( _
   ByVal g As MultiOptionCellType _
)
'使用法
 
Dim g As MultiOptionCellType
 
Dim instance As New MultiOptionCellType(g)
public MultiOptionCellType( 
   MultiOptionCellType g
)

パラメータ

g
コピー元のマルチオプション セル型
次のサンプルコードは、マルチオプション型セルを作成します。
FarPoint.Win.Spread.CellType.MultiOptionCellType multcell = new FarPoint.Win.Spread.CellType.MultiOptionCellType();           
multcell.Items = new String[] { "One", "Two", "Three" };            
fpSpread1.ActiveSheet.Cells[0, 0].CellType = multcell;
FarPoint.Win.Spread.CellType.MultiOptionCellType multcell1 = new FarPoint.Win.Spread.CellType.MultiOptionCellType(multcell);
fpSpread1.ActiveSheet.Cells[0, 1].CellType = multcell1;
Dim multcell As New FarPoint.Win.Spread.CellType.MultiOptionCellType()    
multcell.Items = new String() { "One", "Two", "Three" }
FpSpread1.ActiveSheet.Cells(0, 0).CellType = multcell
Dim multcell1 As New FarPoint.Win.Spread.CellType.MultiOptionCellType(multcell)
FpSpread1.ActiveSheet.Cells(0, 1).CellType = multcell1
参照

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

 

 


Copyright © 2004 GrapeCity inc.