Spread for ASP.NET 8.0 Product Documentation
ResetCellType Method (Cell)
Example 


Resets the cell type for the cell and makes the cell inherit the cell type from the default cell.
Syntax
'Declaration
 
Public Sub ResetCellType() 
'Usage
 
Dim instance As Cell
 
instance.ResetCellType()
public void ResetCellType()
Example
This example uses the ResetCellType method.
FarPoint.Web.Spread.Cell mycell;
mycell = FpSpread1.Cells[0, 0];
mycell.BackColor = System.Drawing.Color.RoyalBlue;
mycell.ForeColor = System.Drawing.Color.White;
mycell.Text = "Cell";
mycell.Border = new FarPoint.Web.Spread.Border(System.Web.UI.WebControls.BorderStyle.Double, System.Drawing.Color.DarkBlue, 2);
mycell.CellType = new FarPoint.Web.Spread.TextCellType();
//mycell.ResetBackColor();
//mycell.ResetForeColor();
//mycell.ResetBorder();
//mycell.ResetCellType();
//mycell.ResetText();
Dim mycell As FarPoint.Web.Spread.Cell
mycell = FpSpread1.Cells(0, 0)
mycell.BackColor = Color.RoyalBlue
mycell.ForeColor = Color.White
mycell.Text = "Cell"
mycell.Border = New FarPoint.Web.Spread.Border(System.Web.UI.WebControls.BorderStyle.Double, Color.DarkBlue, 2)
mycell.CellType = New FarPoint.Web.Spread.TextCellType()
'mycell.ResetBackColor()
'mycell.ResetForeColor()
'mycell.ResetBorder()
'mycell.ResetCellType()
'mycell.ResetText()
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

Reference

Cell Class
Cell Members

 

 


Copyright © GrapeCity, inc. All rights reserved.