Spread Windows Forms 12.0 Product Documentation
BoxWidth Property
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace > ColorPickerCellType Class : BoxWidth Property
Gets or sets the width (in pixels) of the box in the color picker cell.
Syntax
'Declaration
 
Public Property BoxWidth As Integer
'Usage
 
Dim instance As ColorPickerCellType
Dim value As Integer
 
instance.BoxWidth = value
 
value = instance.BoxWidth
public int BoxWidth {get; set;}
Example
This example sets the width of the color indicator box.
FarPoint.Win.Spread.CellType.ColorPickerCellType cp = new
FarPoint.Win.Spread.CellType.ColorPickerCellType();
cp.BoxWidth = 40;
cp.DropDown = true;
fpSpread1.ActiveSheet.Cells[0, 0].CellType = cp;
Dim cp As New FarPoint.Win.Spread.CellType.ColorPickerCellType
cp.BoxWidth = 40
cp.DropDown = True

fpSpread1.ActiveSheet.Cells(0, 0).CellType = cp
See Also

Reference

ColorPickerCellType Class
ColorPickerCellType Members