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


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > AlternatingRow Class : Equals Method
Object to compare
Determines whether the specified object is equal to another object in this alternating row.
Syntax
'Declaration
 
Public Overrides Function Equals( _
   ByVal o As Object _
) As Boolean
'Usage
 
Dim instance As AlternatingRow
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
To create alternating rows, first set the AlternatingRows.Count property to specify the number of alternating row patterns, then set the properties for each pattern.
Example
This example assigns an alternating row object to the first alternating row in the active sheet.
FarPoint.Win.Spread.AlternatingRow altrow;
bool b;
altrow = fpSpread1.ActiveSheet.AlternatingRows[0];
altrow.BackColor = Color.Red;
b = altrow.Equals(fpSpread1.ActiveSheet.AlternatingRows[0]);
listBox1.Items.Add(b.ToString());
Dim altrow As FarPoint.Win.Spread.AlternatingRow
Dim b As Boolean
altrow = fpSpread1.ActiveSheet.AlternatingRows(0)
altrow.BackColor = Color.Red
b = altrow.Equals(fpSpread1.ActiveSheet.AlternatingRows(0))
ListBox1.Items.Add(b.ToString())
See Also

Reference

AlternatingRow Class
AlternatingRow Members

User-Task Documentation

Creating Alternating Rows