Spread for ASP.NET 7.0 Product Documentation
BackColor Property
See Also  Example Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > ButtonCellType Class : BackColor Property


Glossary Item Box

Gets or sets the background color of the cell.

Syntax

Visual Basic (Declaration) 
Public Property BackColor As Color
Visual Basic (Usage)Copy Code
Dim instance As ButtonCellType
Dim value As Color
 
instance.BackColor = value
 
value = instance.BackColor
C# 
public Color BackColor {get; set;}

Property Value

Color object containing the background color

Example

This example sets the background and text colors for the button.
C#Copy Code
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;
Visual BasicCopy Code
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

Requirements

Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.