Spread for ASP.NET 10 Product Documentation
Inequality Operator (NamedStyle)
Example 


NamedStyle object (one side of the inequality operator)
Object with which to compare the NamedStyle object (other side of the inequality operator)
Determines whether two styles (a specified object and a NamedStyle object) are not equal.
Syntax
'Declaration
 
Public Operator <>( _
   ByVal style As NamedStyle, _
   ByVal o As Object _
) As Boolean
'Usage
 
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 not equal; false otherwise
Example
This example compares a custom style with another style object for inequality.
[No equivalent in C#]
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.opInequality(ns, si)
FpSpread1.ActiveSheetView.DefaultStyle = ns
ListBox1.Items.Add(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

NamedStyle Class
NamedStyle Members

 

 


Copyright © GrapeCity, inc. All rights reserved.