Spread Windows Forms 11.0 Product Documentation
BackgroundImage Property (ComboBoxCellType)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace > ComboBoxCellType Class : BackgroundImage Property
Gets or sets the image to paint in the background of the combo box edit portion.
Syntax
'Declaration
 
Public Property BackgroundImage As Picture
'Usage
 
Dim instance As ComboBoxCellType
Dim value As Picture
 
instance.BackgroundImage = value
 
value = instance.BackgroundImage
public Picture BackgroundImage {get; set;}

Property Value

Picture object containing the image
Example
FarPoint.Win.Spread.CellType.ComboBoxCellType cmbocell = new FarPoint.Win.Spread.CellType.ComboBoxCellType();
cmbocell.Items = (new String[] {"One", "Two", "Three", "Four", "Five"});
cmbocell.BackgroundImage = new FarPoint.Win.Picture(Image.FromFile("..\\images\\skybg.gif"));
cmbocell.Editable = false;
fpSpread1.ActiveSheet.Columns[0, 2].CellType = cmbocell;
Dim cmbocell As New FarPoint.Win.Spread.CellType.ComboBoxCellType()
cmbocell.Items() = (New String() {"One", "Two", "Three", "Four", "Five"})
cmbocell.BackgroundImage = New FarPoint.Win.Picture(Image.FromFile("..\images\skybg.gif"))
cmbocell.Editable = False
fpSpread1.ActiveSheet.Columns(0, 2).CellType = cmbocell
See Also

Reference

ComboBoxCellType Class
ComboBoxCellType Members

User-Task Documentation

Setting a Combo Box Cell