Spread Windows Forms 11.0 Product Documentation
DropDownButton Property (EditBaseCellType)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace > EditBaseCellType Class : DropDownButton Property
Gets or sets whether a drop-down button is displayed in the cell.
Syntax
'Declaration
 
Public Property DropDownButton As Boolean
'Usage
 
Dim instance As EditBaseCellType
Dim value As Boolean
 
instance.DropDownButton = value
 
value = instance.DropDownButton
public bool DropDownButton {get; set;}

Property Value

Boolean: true if drop-down button is displayed; false otherwise
Example
This example creates a drop-down button in a date-time cell.
FarPoint.Win.Spread.CellType.DateTimeCellType datecell = new FarPoint.Win.Spread.CellType.DateTimeCellType();
datecell.DropDownButton = true;
fpSpread1.Sheets[0].Cells[0,0].CellType =datecell;
Dim datecell As New FarPoint.Win.Spread.CellType.DateTimeCellType()
datecell.DropDownButton = True
fpSpread1.Sheets(0).Cells(0, 0).CellType = datecell
See Also

Reference

EditBaseCellType Class
EditBaseCellType Members