Spread ASP.NET 15
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / ComboBoxCellType Class / BackColor Property
Example


In This Topic
    BackColor Property (ComboBoxCellType)
    In This Topic
    Gets or sets the background color of the cell.
    Syntax
    'Declaration
     
    Public Property BackColor As Color
    'Usage
     
    Dim instance As ComboBoxCellType
    Dim value As Color
     
    instance.BackColor = value
     
    value = instance.BackColor
    public Color BackColor {get; set;}

    Property Value

    Color object containing the background color
    Example
    This example sets the backcolor for the combobox.
    FarPoint.Web.Spread.ComboBoxCellType cb = new FarPoint.Web.Spread.ComboBoxCellType(new string[] {
                "One",
                "Two",
                "Three"});
    cb.ShowButton = true;
    cb.BackColor = Drawing.Color.Coral;
    FpSpread1.ActiveSheetView.Cells[0, 0].CellType = cb;
    
    Dim cb As New FarPoint.Web.Spread.ComboBoxCellType(New String() {"One", "Two", "Three"})
    cb.ShowButton = True
    cb.BackColor = Drawing.Color.Coral
    FpSpread1.ActiveSheetView.Cells(0, 0).CellType = cb
    See Also