Esempio n. 1
0
 public bool Equals(ApplicationSetting other)
 {
     return
         (SkipFirstBlankRows == other.skipFirstBlankRows &&
          SkipFirstBlankColumns == other.SkipFirstBlankColumns &&
          TrimLastBlankRows == other.TrimLastBlankRows &&
          TrimLastBlankColumns == other.TrimLastBlankColumns &&
          ExternalCommands.SequenceEqual(other.ExternalCommands) &&
          FileSettings.SequenceEqual(other.FileSettings) &&
          RecentFileSets.SequenceEqual(other.RecentFileSets) &&
          CellWidth == other.cellWidth &&
          AlternatingColorStrings.SequenceEqual(other.AlternatingColorStrings) &&
          ColumnHeaderColorString.Equals(other.ColumnHeaderColorString) &&
          RowHeaderColorString.Equals(other.RowHeaderColorString) &&
          AddedColorString.Equals(other.AddedColorString) &&
          RemovedColorString.Equals(other.RemovedColorString) &&
          ModifiedColorString.Equals(other.ModifiedColorString) &&
          ModifiedRowColorString.Equals(other.ModifiedRowColorString) &&
          ColorModifiedRow.Equals(other.ColorModifiedRow) &&
          SearchHistory.Equals(other.SearchHistory) &&
          FontName.Equals(other.FontName) &&
          LogFormat.Equals(other.LogFormat) &&
          AddedRowLogFormat.Equals(other.AddedRowLogFormat) &&
          RemovedRowLogFormat.Equals(other.RemovedRowLogFormat));
 }
        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);
        }
Esempio n. 3
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. 4
0
        /// <summary>
        /// Returns true if PdfAlignedTextParameters instances are equal
        /// </summary>
        /// <param name="input">Instance of PdfAlignedTextParameters to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(PdfAlignedTextParameters input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     TextVerticalAlignment == input.TextVerticalAlignment ||
                     TextVerticalAlignment.Equals(input.TextVerticalAlignment)
                     ) &&
                 (
                     TextHorizontalAlignment == input.TextHorizontalAlignment ||
                     TextHorizontalAlignment.Equals(input.TextHorizontalAlignment)
                 ) &&
                 (
                     Text == input.Text ||
                     (Text != null &&
                      Text.Equals(input.Text))
                 ) &&
                 (
                     TextColor == input.TextColor ||
                     (TextColor != null &&
                      TextColor.Equals(input.TextColor))
                 ) &&
                 (
                     FontName == input.FontName ||
                     (FontName != null &&
                      FontName.Equals(input.FontName))
                 ) &&
                 (
                     StandardFontName == input.StandardFontName ||
                     StandardFontName.Equals(input.StandardFontName)
                 ) &&
                 (
                     FontStyle == input.FontStyle ||
                     FontStyle.Equals(input.FontStyle)
                 ) &&
                 (
                     FontSize == input.FontSize ||
                     FontSize.Equals(input.FontSize)
                 ));
        }
Esempio n. 5
0
        public override bool Equals(object o)
        {
            if (!(o is Stamping))
            {
                return(false);
            }
            Stamping v = o as Stamping;

            if (!Color.Equals(v.Color))
            {
                return(false);
            }
            if (!Enabled.Equals(v.Enabled))
            {
                return(false);
            }
            if (!FontAsOutline.Equals(v.FontAsOutline))
            {
                return(false);
            }
            if (!FontName.Equals(v.FontName))
            {
                return(false);
            }
            if (!FontOutlineWidth.Equals(v.FontOutlineWidth))
            {
                return(false);
            }
            if (!FontSize.Equals(v.FontSize))
            {
                return(false);
            }
            if (!PostScriptFontName.Equals(v.PostScriptFontName))
            {
                return(false);
            }
            if (!StampText.Equals(v.StampText))
            {
                return(false);
            }

            return(true);
        }