コード例 #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)
         );
 }
コード例 #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));
        }
コード例 #3
0
 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));
 }