Spread Windows Forms 9.0 Product Documentation
Equals Method (Cell)
Example 


Object to compare
Determines whether the specified object is equivalent to this cell.
Syntax
'Declaration
 
Public Overrides Function Equals( _
   ByVal o As Object _
) As Boolean
'Usage
 
Dim instance As Cell
Dim o As Object
Dim value As Boolean
 
value = instance.Equals(o)
public override bool Equals( 
   object o
)

Parameters

o
Object to compare

Return Value

Boolean: true if the objects are equivalent; false otherwise
Remarks

This method determines 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.

Example

This example illustrates the use of this member by returning 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.

FarPoint.Win.Spread.Cell aCell;
object o;
bool b;
o = fpSpread1.ActiveSheet.Cells[0, 0];
aCell = (FarPoint.Win.Spread.Cell)o;
b = aCell.Equals(o);
listBox1.Items.Add(b.ToString());
Dim aCell As FarPoint.Win.Spread.Cell
Dim b As Boolean
Dim o As Object
o = FpSpread1.ActiveSheet.Cells(0, 0)
aCell = o
b = aCell.Equals(o)
ListBox1.Items.Add(b.ToString())
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

Cell Class
Cell Members

 

 


Copyright © GrapeCity, inc. All rights reserved.