Beispiel #1
0
        public override bool Equals(object obj)
        {
            if (!(obj is TextStyle))
            {
                return(false);
            }
            TextStyle ts = obj as TextStyle;

            return(base.Equals(ts) &&
                   FontStyle.Equals(ts.FontStyle) &&
                   FontFamily.Equals(ts.FontFamily) &&
                   FontSize.Equals(ts.FontSize) &&
                   FontWeight.Equals(ts.FontWeight) &&
                   Format.Equals(ts.Format) &&
                   TextDecoration.Equals(ts.TextDecoration) &&
                   TextAlign.Equals(ts.TextAlign) &&
                   VerticalAlign.Equals(ts.VerticalAlign) &&
                   LineHeight.Equals(ts.LineHeight) &&
                   Direction.Equals(ts.Direction) &&
                   WritingMode.Equals(ts.WritingMode) &&
                   Language.Equals(ts.Language) &&
                   UnicodeBiDi.Equals(ts.UnicodeBiDi) &&
                   Calendar.Equals(ts.Calendar) &&
                   NumeralLanguage.Equals(ts.NumeralLanguage) &&
                   NumeralVariant.Equals(ts.NumeralVariant));
        }
Beispiel #2
0
        public override bool Equals(object obj)
        {
            BoxStyle bs = obj as BoxStyle;

            return(
                BorderColor.Equals(bs.BorderColor) &&
                BorderStyle.Equals(bs.BorderStyle) &&
                BorderWidth.Equals(bs.BorderWidth) &&
                BackgroundColor.Equals(bs.BackgroundColor) &&
                BackgroundGradientType.Equals(bs.BackgroundGradientType) &&
                BackgroundGradientEndColor.Equals(bs.BackgroundGradientEndColor) &&
                BackgroundImage == bs.BackgroundImage &&
                BackgroundImageType.Equals(bs.BackgroundImageType) &&
                Color.Equals(bs.Color) &&
                PaddingLeft.Equals(bs.PaddingLeft) &&
                PaddingRight.Equals(bs.PaddingRight) &&
                PaddingTop.Equals(bs.PaddingTop) &&
                PaddingBottom.Equals(bs.PaddingBottom));
        }