Spread for ASP.NET 10 Product Documentation
BackColor Property (ButtonCellType)
Example 


Gets or sets the background color of the cell.
Syntax
'Declaration
 
Public Property BackColor As Color
'Usage
 
Dim instance As ButtonCellType
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 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
Requirements

Target Platforms: Windows 7, Windows 8, Windows 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional

See Also

Reference

ButtonCellType Class
ButtonCellType Members

 

 


Copyright © GrapeCity, inc. All rights reserved.