Spread Windows Forms 12.0 Product Documentation
ColorPickerStyle Enumeration
Example Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace : ColorPickerStyle Enumeration
Specifies how the color picker cell renders.
Syntax
'Declaration
 
Public Enum ColorPickerStyle 
   Inherits System.Enum
'Usage
 
Dim instance As ColorPickerStyle
public enum ColorPickerStyle : System.Enum 
Members
MemberDescription
BoxedDisplays the color in a box in the client area
BoxedWithTextDisplays the color in a box in the client area with text displayed alongside the box
FillFills the entire client area with the color
FillWithTextFills the entire client area with text overlay
Example
This example creates a color picker cell.
FarPoint.Win.Spread.CellType.ColorPickerCellType cp = new FarPoint.Win.Spread.CellType.ColorPickerCellType();
cp.AllowFullOpen = true;
cp.AnyColor = false;
cp.CustomColors = new int[] {255, 190, 50};
cp.FullOpen = true;
cp.Style = FarPoint.Win.Spread.CellType.ColorPickerStyle.BoxedWithText;
fpSpread1.ActiveSheet.Cells[0, 0].CellType = cp;
Dim cp As New FarPoint.Win.Spread.CellType.ColorPickerCellType
cp.AllowFullOpen = True
cp.AnyColor = False
cp.CustomColors = New Integer() {255, 190, 50}
cp.FullOpen = True
cp.Style = FarPoint.Win.Spread.CellType.ColorPickerStyle.BoxedWithText
fpSpread1.ActiveSheet.Cells(0, 0).CellType = cp
Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         FarPoint.Win.Spread.CellType.ColorPickerStyle

See Also

Reference

FarPoint.Win.Spread.CellType Namespace