Spread Windows Forms 13.0 Product Documentation
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / NamedStyle Class / Equality Operator
NamedStyle object (one side of the inequality operator)
Object with which to compare the NamedStyle object (other side of the inequality operator)
Example


In This Topic
    Equality Operator (NamedStyle)
    In This Topic
    Determines whether two styles (a specified object and a NamedStyle object) are 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 the specified object is equivalent to the NamedStyle object; otherwise, false
    Example
    This example compares a NamedStyle object with another object for equality.
    Dim ns As New FarPoint.Win.Spread.NamedStyle()
    Dim si As New FarPoint.Win.Spread.StyleInfo()
    Dim b As Boolean
    si.BackColor = Color.LightBlue
    ns.CopyFrom(si)
    b = ns.op_Equality(ns, si)
    FpSpread1.ActiveSheet.DefaultStyle = ns
    ListBox1.Items.Add(b.ToString())
    See Also