PowerTools SPREAD for Windows Forms 10.0J
ComboBoxCellType コンストラクタ(ComboBoxCellType)


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

パラメータ

g
コピー元のコンボ ボックス セル型
次のサンプルコードは、コンボボックス型セルを作成します。
FarPoint.Win.Spread.CellType.ComboBoxCellType cmbocell = new FarPoint.Win.Spread.CellType.ComboBoxCellType();
cmbocell.Items = (new String[] { "January", "February", "March", "April", "May", "June" });
cmbocell.AcceptsArrowKeys = FarPoint.Win.SuperEdit.AcceptsArrowKeys.AllArrows;
cmbocell.AutoSearch = FarPoint.Win.AutoSearch.SingleCharacter;
cmbocell.Editable = true;
cmbocell.ListAlignment = FarPoint.Win.ListAlignment.Left;            
cmbocell.MaxDrop = 4;
fpSpread1.Sheets[0].Cells[2, 2].CellType = cmbocell;

FarPoint.Win.Spread.CellType.ComboBoxCellType cmbocellcopy = new FarPoint.Win.Spread.CellType.ComboBoxCellType(cmbocell);
fpSpread1.Sheets[0].Cells[1, 1].CellType = cmbocellcopy;
Dim cmbocell As New FarPoint.Win.Spread.CellType.ComboBoxCellType()
cmbocell.Items = (New String() {"January", "February", "March", "April", "May", "June"})
cmbocell.AcceptsArrowKeys = FarPoint.Win.SuperEdit.AcceptsArrowKeys.AllArrows
cmbocell.AutoSearch = FarPoint.Win.AutoSearch.SingleCharacter
cmbocell.Editable = True
cmbocell.ListAlignment = FarPoint.Win.ListAlignment.Left
cmbocell.MaxDrop = 4
FpSpread1.Sheets(0).Cells(2, 2).CellType = cmbocell
Dim cmbocellcopy As New FarPoint.Win.Spread.CellType.ComboBoxCellType(cmbocell)
FpSpread1.Sheets(0).Cells(1, 1).CellType = cmbocellcopy
参照

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

 

 


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