public Style() { FontName = "Arial"; FontSize = 11; TextStyle.Add(TextStyleType.Normal); FontColor = Color.Black; Aligment = new Aligment(); DocumentTitle = DocumentTitle.None; }
public override int GetHashCode() { unchecked { int hashCode = (FontName != null ? FontName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ FontSize; //hashCode = (hashCode * 397) ^ (int)TextStyle; hashCode = (hashCode * 397) ^ FontColor.GetHashCode(); hashCode = (hashCode * 397) ^ (Aligment != null ? Aligment.GetHashCode() : 0); return(hashCode); } }
protected bool Equals(Aligment other) { return(VerticalAligment == other.VerticalAligment && HorizontalAligment == other.HorizontalAligment && WrapText.Equals(other.WrapText)); }