public override bool Equals (object obj) { var other = obj as Font; if (other == null) return false; return Family == other.Family && Style == other.Style && Weight == other.Weight && Stretch == other.Stretch && Size == other.Size; }
public void SetFont(Font font) { if (!font.Equals(this.Font)) { this.Font = font; if (formattedText != null) { ApplyFont(); } } }