FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace > ComboBoxCellType Class : RemoveItem Method |
'Usage Dim instance As ComboBoxCellType Dim index As Integer instance.RemoveItem(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); }
Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10