Spread for ASP.NET 7.0 Product Documentation
Equality Operator
See Also  Example Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > NamedStyle Class : Equality Operator

style
NamedStyle object (one side of the inequality operator)
o
Object with which to compare the NamedStyle object (other side of the inequality operator)

Glossary Item Box

Determines whether two styles (a specified object and a NamedStyle object) are equal.

Syntax

Visual Basic (Declaration) 
Public Operator =( _
   ByVal style As NamedStyle, _
   ByVal o As Object _
) As Boolean
Visual Basic (Usage)Copy Code
C# 
public bool operator ==( 
   NamedStyle style,
   object o
)

Parameters

style
NamedStyle object (one side of the inequality operator)
o
Object with which to compare the NamedStyle object (other side of the inequality operator)

Return Value

true if objects are equal; false otherwise

Example

This example compares a custom style with another style object for equality.
C#Copy Code
[No equivalent in C#]
Visual BasicCopy Code
Dim ns As New FarPoint.Web.Spread.NamedStyle()
Dim si As New FarPoint.Web.Spread.StyleInfo()
Dim b As Boolean
si.BackColor = Color.LightBlue
ns.CopyFrom(si)
b = ns.opEquality(ns, si)
FpSpread1.ActiveSheetView.DefaultStyle = ns
ListBox1.Items.Add(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.