PowerTools SPREAD for Windows Forms 8.0J
RemoveItem メソッド


削除する項目のインデックス
インデックスで指定された個々の項目をリストから削除します。
構文
'Declaration
 
Public Sub RemoveItem( _
   ByVal index As Integer _
) 
'使用法
 
Dim instance As ComboBoxCellType
Dim index As Integer
 
instance.RemoveItem(index)
public void RemoveItem( 
   int index
)

パラメータ

index
削除する項目のインデックス
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"})
FpSpread1.ActiveSheet.Cells(0, 0).CellType = cmbocell
dlg = MessageBox.Show("Do you want to remove the item?", "RemoveItem", MessageBoxButtons.YesNo)
If dlg = DialogResult.Yes Then
     cmbocell.RemoveItem(2)
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"});
fpSpread1.ActiveSheet.Cells[0, 0].CellType = cmbocell;
dlg = MessageBox.Show("Do you want to remove the item?", "RemoveItem", MessageBoxButtons.YesNo);
if (dlg == DialogResult.Yes)
{
     cmbocell.RemoveItem(2);
}
参照

ComboBoxCellType クラス
ComboBoxCellType メンバ

 

 


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