MESCIUS SPREAD for ASP.NET 10.0J
ResetCellType メソッド (Cell)

セルのセル型をリセットし、そのセルにデフォルトセルのセル型を継承します。
構文
'Declaration
 
Public Sub ResetCellType() 
public void ResetCellType()
次のサンプルコードは、ResetCellTypeメソッドを使用します。
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()
参照

Cell クラス
Cell メンバ

 

 


© MESCIUS inc. All rights reserved.