Gets or sets whether to drop down the color picker dialog by default.
Syntax
Visual Basic (Declaration) | |
---|
Public Property DropDown As Boolean |
Visual Basic (Usage) | Copy Code |
---|
Dim instance As ColorPickerCellType
Dim value As Boolean
instance.DropDown = value
value = instance.DropDown |
C# | |
---|
public bool DropDown {get; set;} |
Example
This example allows the color picker to drop down from the cell.
C# | Copy Code |
---|
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; |
Visual Basic | Copy Code |
---|
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 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8
See Also