Spread for ASP.NET 7.0 Product Documentation
Equals Method
See Also  Example Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > Cell Class : Equals Method


o
Object to compare

Glossary Item Box

Returns true if the specified object is equivalent to this Cell object, that is, if it represents the same cell or group of cells in the same sheet.

Syntax

Visual Basic (Declaration) 
Public Overrides Function Equals( _
   ByVal o As Object _
) As Boolean
Visual Basic (Usage)Copy Code
Dim instance As Cell
Dim o As Object
Dim value As Boolean
 
value = instance.Equals(o)
C# 
public override bool Equals( 
   object o
)

Parameters

o
Object to compare

Return Value

true if the objects are equivalent; false otherwise

Example

This example returns true if the specified object is equivalent to this cell object, that is, if it represents the same cell or group of cells in the same sheet.
C#Copy Code
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());
Visual BasicCopy Code
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())

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

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.