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); }
public override bool Equals(object obj) { try { var val2 = obj as PageCountElement; return(val2 != null && val2.UseLeadingZero.Equals(UseLeadingZero) && XamlWriter.Save(val2.ForgroundBrush).Equals(XamlWriter.Save(ForgroundBrush)) && FontFamily.Source.Equals(val2.FontFamily.Source) && FontSize.Equals(val2.FontSize)); } catch { return(false); } }
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 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); }
public override bool Equals(object obj) { try { var sty = obj as ComplexStyle; if (sty == null) { return(false); } return(sty.IsBold == IsBold && sty.IsItalic == IsItalic && sty.IsStrikedOut == IsStrikedOut && sty.IsUnderlined == IsUnderlined && FontSize.Equals(sty.FontSize) && EqualNullable(sty) && sty.IsCondenced == IsCondenced); } catch (Exception e) { return(false); } }
bool Equals(Font other) { return(string.Equals(FontFamily, other.FontFamily) && FontSize.Equals(other.FontSize) && NamedSize == other.NamedSize && FontAttributes == other.FontAttributes); }
protected bool Equals(StyleInfo other) { return(Color.Equals(other.Color) && Font.Equals(other.Font) && FontName == other.FontName && FontSize.Equals(other.FontSize) && TextOrientation == other.TextOrientation); }
public bool Empty() => Color == null && Font == null && FontName == null && FontSize.Equals(0) && TextOrientation.Equals(UglyToad.PdfPig.Content.TextOrientation.Other);
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)); }
/// <summary> /// Determina si el objeto especificado es igual al objeto actual. /// </summary> /// <param name="obj">Objeto que se va a comparar con el objeto actual.</param> /// <returns>Es true si el objeto especificado es igual al objeto actual; /// en caso contrario, es false.</returns> public override bool Equals(object obj) { PdfTagPattern input = (obj as PdfTagPattern); if (input == null) { throw new ArgumentException("Parámetro de tipo incorrecto."); } bool equalsTextString = false; bool equalsRectangle = false; if (input.SourceTypeName.Equals("TextStringInfos")) // Comprobamos si las propiedades de los textString coinciden { if (FontSize != null && input.FontSize != null && ColorFill != null && input.ColorFill != null && ColorStroke != null && input.ColorStroke != null && FontType != null && input.FontType != null && TsType != null && input.TsType != null) { if (ColorFill.Equals(input.ColorFill) && ColorStroke.Equals(input.ColorStroke) && FontSize.Equals(input.FontSize) && FontType.Equals(input.FontType) && TsType.Equals(input.TsType)) { if ((TsType.Equals("X") || TsType.Equals("Y")) && TsCoordinate.Equals(input.TsCoordinate)) { equalsTextString = true; } else if (TsType.Equals("NA")) { equalsTextString = true; } } } } else { equalsTextString = true; } if (PdfRectangle != null && input.PdfRectangle != null) // Comprobamos si el rectángulo coincide && FontType==null { equalsRectangle = PdfRectangle.Equals(input.PdfRectangle); } else { equalsRectangle = true; } return((MetadataItemName == input.MetadataItemName && PdfPageN == input.PdfPageN && IsLastPage == input.IsLastPage && equalsRectangle && RegexPattern == input.RegexPattern && Position == input.Position && SourceTypeName == input.SourceTypeName) && equalsTextString); }