FarPoint.Web.Spread 名前空間 > Cell クラス : Equals メソッド |
指定したオブジェクトがこのCellオブジェクトに等しい(つまり、同じシート内の同じセルまたはセルグループである)場合はTrueを返します。
FarPoint.Web.Spread.Cell mycell; FarPoint.Web.Spread.Cell acell; 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(); acell = mycell; bool b; b = acell.Equals(mycell); Response.Write(b.ToString());
Dim mycell As FarPoint.Web.Spread.Cell Dim acell 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 acell = mycell Dim b As Boolean b = acell.Equals(mycell) Response.Write(b.ToString())