public Boolean Equals(IXLRichString other) { return (Text == other.Text && Bold.Equals(other.Bold) && Italic.Equals(other.Italic) && Underline.Equals(other.Underline) && Strikethrough.Equals(other.Strikethrough) && VerticalAlignment.Equals(other.VerticalAlignment) && Shadow.Equals(other.Shadow) && FontSize.Equals(other.FontSize) && FontColor.Equals(other.FontColor) && FontName.Equals(other.FontName) && FontFamilyNumbering.Equals(other.FontFamilyNumbering) ); }
public override bool Equals(object obj) { FontDesc other = obj as FontDesc; if (other == null) { return(false); } if (!(Size == other.Size && Bold.Equals(other.Bold) && Italic.Equals(other.Italic) && Underline.Equals(other.Underline))) { return(false); } return(Family == null ? other.Family == null : Family.Equals(other.Family)); }
protected bool Equals(TextStyle other) { return(Equals(TextColor, other.TextColor) && FontSize.Equals(other.FontSize) && Bold.Equals(other.Bold) && Italic.Equals(other.Italic) && Alignment.Equals(other.Alignment)); }