FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > NamedStyle Class : Equals Method |
'Usage Dim instance As NamedStyle Dim o As Object Dim value As Boolean value = instance.Equals(o)
bool b; FarPoint.Win.Spread.StyleInfo si = new FarPoint.Win.Spread.StyleInfo(); si.BackColor = Color.Yellow; si.Font = new Font("Comic Sans Serif", 12); FarPoint.Win.Spread.NamedStyle ns = new FarPoint.Win.Spread.NamedStyle(); si.BackColor = Color.Yellow; ns.CopyFrom(si); fpSpread1.NamedStyles.Add(ns); fpSpread1.ActiveSheet.ColumnHeader.DefaultStyle = ns; fpSpread1.ActiveSheet.RowHeader.DefaultStyle = ns; b = ns.Equals(si); listBox1.Items.Add(b.ToString());
Dim b As Boolean Dim si As New FarPoint.Win.Spread.StyleInfo() si.BackColor = Color.Yellow si.Font = New Font("Comic Sans Serif", 12) Dim ns As New FarPoint.Win.Spread.NamedStyle("StyleHeaders", "HeaderDefault") ns.CopyFrom(si) FpSpread1.NamedStyles.Add(ns) FpSpread1.ActiveSheet.ColumnHeader.DefaultStyle = ns FpSpread1.ActiveSheet.RowHeader.DefaultStyle = ns b = ns.Equals(si) ListBox1.Items.Add(b.ToString())
Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8