Spread for ASP.NET 9.0 Product Documentation
Equals Method (AlternatingRow)
Example 


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
Returns true if the specified object is equivalent to this alternating row; that is, if they represent the same alternating row in the same sheet.
Example
FarPoint.Web.Spread.AlternatingRow ar;
FarPoint.Web.Spread.NamedStylens = new FarPoint.Web.Spread.NamedStyle("TestStyle");
ns.BackColor = Color.Yellow;
ns.Parent = "DataAreaDefault;"
ar = FpSpread1.ActiveSheetView.AlternatingRows[0];
ar.StyleName = "TestStyle";
FpSpread1.NamedStyles.Add(ns);

bool b;
b = ar.Equals(FpSpread1.ActiveSheetView.AlternatingRows[0]);
Response.Write(b.ToString());
Dim ar As FarPoint.Web.Spread.AlternatingRow
Dim ns As New FarPoint.Web.Spread.NamedStyle("TestStyle")
ns.BackColor = Color.Yellow
ns.Parent = "DataAreaDefault"
ar = FpSpread1.ActiveSheetView.AlternatingRows(0)
ar.StyleName = "TestStyle"
FpSpread1.NamedStyles.Add(ns)

Dim b As Boolean
b = ar.Equals(FpSpread1.ActiveSheetView.AlternatingRows(0))
Response.Write(b.ToString()) 
Requirements

Target Platforms: Windows 7, Windows 8, Windows 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional

See Also

Reference

AlternatingRow Class
AlternatingRow Members

 

 


Copyright © GrapeCity, inc. All rights reserved.