示例#1
0
        public bool Equals(IXLPhonetics other)
        {
            if (other == null)
            {
                return(false);
            }

            Int32 phoneticsCount = _phonetics.Count;

            for (Int32 i = 0; i < phoneticsCount; i++)
            {
                if (!_phonetics[i].Equals(other.ElementAt(i)))
                {
                    return(false);
                }
            }

            return
                (Bold == other.Bold &&
                 Italic == other.Italic &&
                 Underline == other.Underline &&
                 Strikethrough == other.Strikethrough &&
                 VerticalAlignment == other.VerticalAlignment &&
                 Shadow == other.Shadow &&
                 FontSize == other.FontSize &&
                 FontColor.Equals(other.FontColor) &&
                 FontName == other.FontName &&
                 FontFamilyNumbering == other.FontFamilyNumbering);
        }
示例#2
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)
         );
 }
示例#3
0
 protected bool Equals(Style other)
 {
     return(string.Equals(FontName, other.FontName) && FontSize == other.FontSize && TextStyle == other.TextStyle && FontColor.Equals(other.FontColor) && Equals(Aligment, other.Aligment));
 }
        public bool Equals(SheetCellFormats other)
        {
            if (ReferenceEquals(other, null))
            {
                return(false);
            }

            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return(FontSize.Equals(other.FontSize) && FontName.Equals(other.FontName) && FontBold.Equals(other.FontBold) && FontColor.Equals(other.FontColor) && FGColor.Equals(other.FGColor) && Borders[0].Equals(other.Borders[0]) && Borders[1].Equals(other.Borders[1]) && Borders[2].Equals(other.Borders[2]) && Borders[3].Equals(other.Borders[3]) && CellWidth.Equals(other.CellWidth) && CellHeight.Equals(other.CellHeight) && HorizontalAlignment == other.HorizontalAlignment && VerticalAlignment == other.VerticalAlignment && WrapText == other.WrapText);
        }