Gets or sets the text (foreground) color for a cell.
            
            
            
Syntax
| Visual Basic (Declaration) |   | 
|---|
Public Property ForeColor As Color  | 
 
| Visual Basic (Usage) |  Copy Code | 
|---|
Dim instance As Cell
Dim value As Color
 
instance.ForeColor = value
 
value = instance.ForeColor  | 
 
| C# |   | 
|---|
public Color ForeColor {get; set;} | 
 
            
            
            Property Value
Color object that contains the text color for this cell
 
            
			
			
            Remarks
            
            
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.
             
| C# |  Copy Code | 
|---|
FarPoint.Web.Spread.Cell�mycell;
mycell�=�FpSpread1.Cells[0,�0];
mycell.BackColor�=�Color.RoyalBlue;
mycell.ForeColor�=�Color.White;
mycell.Border�=�new�FarPoint.Web.Spread.Border(System.Web.UI.WebControls.BorderStyle.Double,�Color.DarkBlue,�2);
mycell.CellType�=�new�FarPoint.Web.Spread.CheckBoxCellType();  | 
 
| Visual Basic |  Copy Code | 
|---|
Dim�mycell�As�FarPoint.Web.Spread.Cell
mycell�=�FpSpread1.Cells(0,�0)
mycell.BackColor�=�Color.RoyalBlue
mycell.ForeColor�=�Color.White
mycell.Border�=�New�FarPoint.Web.Spread.Border(System.Web.UI.WebControls.BorderStyle.Double,�Color.DarkBlue,�2)
mycell.CellType�=�New�FarPoint.Web.Spread.CheckBoxCellType()  | 
 
 
            
            
Requirements
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family
 
            
            
See Also