Spread Windows Forms 12.0 Product Documentation
DropDown Property (ColorPickerCellType)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace > ColorPickerCellType Class : DropDown Property
Gets or sets whether to drop down the color picker dialog by default.
Syntax
'Declaration
 
Public Property DropDown As Boolean
'Usage
 
Dim instance As ColorPickerCellType
Dim value As Boolean
 
instance.DropDown = value
 
value = instance.DropDown
public bool DropDown {get; set;}
Example
This example allows the color picker to drop down from the cell.
FarPoint.Win.Spread.CellType.ColorPickerCellType cp = new FarPoint.Win.Spread.CellType.ColorPickerCellType();
cp.AnyColor = true;
cp.CustomColors = new int[] {
        255,
        190,
        50};
cp.Style = FarPoint.Win.Spread.CellType.ColorPickerStyle.BoxedWithText;
cp.DropDown = true;
fpSpread1.ActiveSheet.Cells[0, 0].CellType = cp;
Dim cp As New FarPoint.Win.Spread.CellType.ColorPickerCellType
cp.AnyColor = True
cp.CustomColors = New Integer() {255, 190, 50}
cp.Style = FarPoint.Win.Spread.CellType.ColorPickerStyle.BoxedWithText
cp.DropDown = True
fpSpread1.ActiveSheet.Cells(0, 0).CellType = cp
See Also

Reference

ColorPickerCellType Class
ColorPickerCellType Members