public override bool Equals(object obj) { ExcelFontData data1 = (ExcelFontData)obj; if ((((data1.Name == this.Name) && (data1.Color.ToArgb() == this.Color.ToArgb())) && ((data1.Weight == this.Weight) && (data1.Size == this.Size))) && (((data1.Italic == this.Italic) && (data1.Strikeout == this.Strikeout)) && ((data1.ScriptPosition == this.ScriptPosition) && (data1.UnderlineStyle == this.UnderlineStyle)))) { return(true); } return(false); }
public ExcelFontData(ExcelFontData source) { this.ColorIndex = -1; this.Name = "Arial"; this.Color = System.Drawing.Color.Black; this.Weight = 400; this.Size = 200; this.ScriptPosition = MB.WinEIDrive.Excel.ScriptPosition.Normal; this.UnderlineStyle = MB.WinEIDrive.Excel.UnderlineStyle.None; this.Name = source.Name; this.Color = source.Color; this.Weight = source.Weight; this.Size = source.Size; this.Italic = source.Italic; this.Strikeout = source.Strikeout; this.ScriptPosition = source.ScriptPosition; this.UnderlineStyle = source.UnderlineStyle; }