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


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
Requirements

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

See Also

Reference

ColorPickerCellType Class
ColorPickerCellType Members

 

 


Copyright © GrapeCity, inc. All rights reserved.