Spread Windows Forms 11.0 Product Documentation
Equals Method (Row)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > Row Class : Equals Method
Object to compare
Determines whether the specified object is equivalent to this row.
Syntax
'Declaration
 
Public Overrides Function Equals( _
   ByVal o As Object _
) As Boolean
'Usage
 
Dim instance As Row
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 Row object, that is, if it represents the same row or group of rows in the same sheet.

Example
This example queries whether the Row object is equal to the row in the sheet.
FarPoint.Win.Spread.Row r;
r = fpSpread1.ActiveSheet.Rows[0];
listBox1.Items.Add(fpSpread1.ActiveSheet.RowCount.ToString());
r.Add();
listBox1.Items.Add(fpSpread1.ActiveSheet.RowCount.ToString());
Dim r As FarPoint.Win.Spread.Row
Dim b As Boolean
r = FpSpread1.ActiveSheet.Rows(0)
b = r.Equals(FpSpread1.ActiveSheet.Rows(0))
ListBox1.Items.Add(b.ToString())
See Also

Reference

Row Class
Row Members