Spread ASP.NET 15
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / ButtonCellType Class / ForeColor Property

In This Topic
    ForeColor Property (ButtonCellType)
    In This Topic
    Gets or sets the foreground color (typically the color of the text) of the cell.
    Public Property ForeColor As Color
    Dim instance As ButtonCellType
    Dim value As Color
    instance.ForeColor = value
    value = instance.ForeColor
    public Color ForeColor {get; set;}

    Property Value

    Color object containing the text color
    This example sets the background and text colors for the button.
    FarPoint.Web.Spread.ButtonCellType btn = new FarPoint.Web.Spread.ButtonCellType();
    btn.Text = "FarPoint";
    btn.BackColor = Drawing.Color.Khaki;
    btn.ForeColor = Drawing.Color.Red;
    FpSpread1.ActiveSheetView.Cells[0, 0].CellType = btn;
    Dim btn As New FarPoint.Web.Spread.ButtonCellType
    btn.Text = "FarPoint"
    btn.BackColor = Drawing.Color.Khaki
    btn.ForeColor = Drawing.Color.Red
    FpSpread1.ActiveSheetView.Cells(0, 0).CellType = btn
    See Also