Spread Windows Forms 12.0 Product Documentation
ColorPickerCellType Constructor(ColorPickerCellType)

FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace > ColorPickerCellType Class > ColorPickerCellType Constructor : ColorPickerCellType Constructor(ColorPickerCellType)
Specified color picker cell type from which to copy
Creates a new color picker cell by copying from the specified ColorPickerCellType ("copy constructor").
Public Function New( _
   ByVal g As ColorPickerCellType _
Dim g As ColorPickerCellType
Dim instance As New ColorPickerCellType(g)
public ColorPickerCellType( 
   ColorPickerCellType g


Specified color picker cell type from which to copy
This example creates a ColorPicker cell type.
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;
FarPoint.Win.Spread.CellType.ColorPickerCellType c = new FarPoint.Win.Spread.CellType.ColorPickerCellType(cp);
fpSpread1.ActiveSheet.Cells[0, 0].CellType = c;
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
Dim c As New FarPoint.Win.Spread.CellType.ColorPickerCellType(cp)
fpSpread1.ActiveSheet.Cells(0, 0).CellType = c
See Also


ColorPickerCellType Class
ColorPickerCellType Members
Overload List