指定したオブジェクトがこのCellオブジェクトに等しい(つまり、同じシート内の同じセルまたはセルグループである)場合はTrueを返します。
'Declaration
Public Overrides Function Equals( _
ByVal As Object _
) As Boolean
パラメータ
- o
- 比較するオブジェクト
戻り値の型
オブジェクトが等しい場合はtrue、それ以外の場合はfalse
この例では、指定したオブジェクトがこの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())