Spread Windows Forms 8.0 Product Documentation
Clear Method (ComboBoxCellType)
Example 


Removes all items from the list.
Syntax
'Declaration
 
Public Sub Clear() 
'Usage
 
Dim instance As ComboBoxCellType
 
instance.Clear()
public void Clear()
Example
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();
}
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

Reference

ComboBoxCellType Class
ComboBoxCellType Members

 

 


Copyright © GrapeCity, inc. All rights reserved.