public override bool Equals(object obj) { ExcelFontData data = (ExcelFontData)obj; if (data.Name == this.Name) { int introduced2 = data.Color.ToArgb(); if ((((introduced2 == this.Color.ToArgb()) && (data.Weight == this.Weight)) && ((data.Size == this.Size) && (data.Italic == this.Italic))) && (((data.Strikeout == this.Strikeout) && (data.ScriptPosition == this.ScriptPosition)) && (data.UnderlineStyle == this.UnderlineStyle))) { return(true); } } return(false); }
public CellStyleData(CellStyleCachedCollection parentCollection, bool isDefault) : base(parentCollection, isDefault) { this.HorizontalAlignment = HorizontalAlignmentStyle.General; this.VerticalAlignment = VerticalAlignmentStyle.Bottom; this.PatternStyle = FillPatternStyle.None; this.PatternBackgroundColor = Color.White; this.PatternForegroundColor = Color.Black; this.Locked = true; this.NumberFormat = string.Empty; this.FontData = new ExcelFontData(); this.BorderColor = new Color[] { Color.Black, Color.Black, Color.Black, Color.Black, Color.Black }; this.BorderStyle = new LineStyle[5]; this.BordersUsed = MultipleBorders.None; }
public ExcelFontData(ExcelFontData source) { this.ColorIndex = -1; this.Name = "Arial"; this.Color = System.Drawing.Color.Black; this.Weight = 400; this.Size = 200; this.ScriptPosition = ebexcel.ScriptPosition.Normal; this.UnderlineStyle = ebexcel.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; }