Spread Windows Forms 10.0 Product Documentation
ColorPickerCellType Constructor(ColorPickerCellType)
Example 


Specified color picker cell type from which to copy
Creates a new color picker cell by copying from the specified ColorPickerCellType ("copy constructor").
Syntax
'Declaration
 
Public Function New( _
   ByVal g As ColorPickerCellType _
)
'Usage
 
Dim g As ColorPickerCellType
 
Dim instance As New ColorPickerCellType(g)
public ColorPickerCellType( 
   ColorPickerCellType g
)

Parameters

g
Specified color picker cell type from which to copy
Example
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
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
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.