Esempio n. 1
0
 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)
         );
 }
Esempio n. 2
0
        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));
        }