Spread ASP.NET 17
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / Cell Class / BackColor Property
Example


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

    Property Value

    Color object that contains the background color for the cell
    Remarks

    The setting for this property can be overridden if a named style is assigned to the cell using the StyleName property, and that named style sets the background color.

    Specify the text color for the cell by setting the ForeColor property.

    Example
    This example creates a Cell object, sets in BackColor and ForeColor properties, defines it as a CheckBox cell type, and puts a border around it. When the user edits the cell and checks the CheckBox, the text of the cell changes.
    See Also