Gets or sets the image to paint in the background of the combo box edit portion.
Syntax
Visual Basic (Declaration) | |
---|
Public Property BackgroundImage As Picture |
Visual Basic (Usage) | Copy Code |
---|
Dim instance As ComboBoxCellType
Dim value As Picture
instance.BackgroundImage = value
value = instance.BackgroundImage |
C# | |
---|
public Picture BackgroundImage {get; set;} |
Property Value
Picture object containing the image
Example
C# | Copy Code |
---|
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;
|
Visual Basic | Copy Code |
---|
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
|
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also