Spread Windows Forms 12.0 Product Documentation
DropDownOptions Enumeration
Example Example 


FarPoint.Win Assembly > FarPoint.Win Namespace : DropDownOptions Enumeration
Specifies how to show the list in the combox cell type.
Syntax
'Declaration
 
Public Enum DropDownOptions 
   Inherits System.Enum
'Usage
 
Dim instance As DropDownOptions
public enum DropDownOptions : System.Enum 
Members
MemberDescription
ButtonDisplays the drop down when the button area is clicked, does not drop down when the cell area is clicked.
ButtonAndTextDisplays the drop-down list when the cell or button area is clicked.
InheritKeeps the 3.0 behavior (default)
NoneDoes not drop down when the cell or button area is clicked
TextDisplays the drop-down list when the cell area is clicked, does not drop down the list when the button area clicked.
Example
This example sets the DropDownOptions property.
FarPoint.Win.Spread.CellType.ComboBoxCellType cmbocell = new FarPoint.Win.Spread.CellType.ComboBoxCellType();
cmbocell.Items = (new String[] { "January", "February", "March", "April", "May", "June" });
cmbocell.DropDownOptions = FarPoint.Win.DropDownOptions.ButtonAndText;
fpSpread1.Sheets[0].Cells[0, 0].CellType = cmbocell;
Dim cmbocell As New FarPoint.Win.Spread.CellType.ComboBoxCellType()
cmbocell.Items = (new String() {"January", "February", "March", "April", "May", "June"})
cmbocell.DropDownOptions = FarPoint.Win.DropDownOptions.ButtonAndText
FpSpread1.Sheets(0).Cells(0,0).CellType = cmbocell
Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         FarPoint.Win.DropDownOptions

See Also

Reference

FarPoint.Win Namespace