Spread Windows Forms 8.0 Product Documentation
DropDownOptions Enumeration
Example Example 


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

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

FarPoint.Win Namespace

 

 


Copyright © GrapeCity, inc. All rights reserved.