Spread for ASP.NET 9.0 Product Documentation
ResetForeColor Method (Column)
Example 


Resets the foreground color for the column and makes the column inherit the foreground color from the default column.
Syntax
'Declaration
 
Public Sub ResetForeColor() 
'Usage
 
Dim instance As Column
 
instance.ResetForeColor()
public void ResetForeColor()
Example
This example uses the ResetForeColor method.
FarPoint.Web.Spread.Column mycol;
mycol = FpSpread1.ActiveSheetView.Columns[1];
mycol.BackColor = System.Drawing.Color.Yellow;
mycol.ForeColor = System.Drawing.Color.Red;
mycol.Border = new FarPoint.Web.Spread.Border(BorderStyle.Groove, System.Drawing.Color.Blue, 3);
mycol.Font.Bold = true;
mycol.Font.Name = "ComicSansMS";
//mycol.ResetBackColor();
//mycol.ResetBorder();
//mycol.ResetForeColor();
//mycol.ResetFont();
Dim mycol As FarPoint.Web.Spread.Column
mycol = FpSpread1.ActiveSheetView.Columns(1)
mycol.BackColor = System.Drawing.Color.Yellow
mycol.ForeColor = System.Drawing.Color.Red
mycol.Border = New FarPoint.Web.Spread.Border(BorderStyle.Groove, System.Drawing.Color.Blue, 3)
mycol.Font.Bold = True
mycol.Font.Name = "ComicSansMS"
'mycol.ResetBackColor()
'mycol.ResetBorder()
'mycol.ResetForeColor()
'mycol.ResetFont()
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

Column Class
Column Members

 

 


Copyright © GrapeCity, inc. All rights reserved.