MESCIUS SPREAD for Windows Forms 17.0J
Clear メソッド (ComboBoxCellType)

リストからすべての項目を削除します。
構文
'Declaration
 
Public Sub Clear() 
public void Clear()
Dim cmbocell As New FarPoint.Win.Spread.CellType.ComboBoxCellType()
Dim list As New ListBox()
Dim dlg As DialogResult
cmbocell.Items() = (New String() {"One", "Two", "Three", "Four", "Five"})
cmbocell.Editable = False
fpSpread1.ActiveSheet.Cells(0, 0).CellType = cmbocell
dlg = MessageBox.Show("Do you want to clear the items?", "Clear", MessageBoxButtons.YesNo)
If dlg = DialogResult.Yes Then
     cmbocell.Clear()
End If
FarPoint.Win.Spread.CellType.ComboBoxCellType cmbocell = new FarPoint.Win.Spread.CellType.ComboBoxCellType();
DialogResult dlg;
cmbocell.Items = (new String[] {"One", "Two", "Three", "Four", "Five"});
cmbocell.Editable = false;
fpSpread1.ActiveSheet.Cells[0, 0].CellType = cmbocell;
dlg = MessageBox.Show("Do you want to clear the items?", "Clear", MessageBoxButtons.YesNo);
if (dlg == DialogResult.Yes)
{
     cmbocell.Clear();
}
参照

ComboBoxCellType クラス
ComboBoxCellType メンバ

 

 


© MESCIUS inc. All rights reserved.