Exemple #1
0
        public override bool Equals(object obj)
        {
            if (!(obj is BorderWidth))
            {
                return(false);
            }
            BorderWidth b = obj as BorderWidth;

            return(Left == b.Left &&
                   Right == b.Right &&
                   Top == b.Top &&
                   Bottom == b.Bottom);
        }
Exemple #2
0
 public BoxStyle(RdlEngine.Style style)
 {
     if (style == null)
     {
         style = RdlEngine.Style.DefaultStyle;
     }
     BorderColor                = new BorderColor(style.BorderColor);
     BorderStyle                = new BorderStyle(style.BorderStyle);
     BorderWidth                = new BorderWidth(style.BorderWidth);
     BackgroundColor            = style.BackgroundColor;
     BackgroundGradientType     = style.BackgroundGradientType;
     BackgroundGradientEndColor = style.BackgroundGradientEndColor;
     BackgroundImage            = style.BackgroundImage.Value;
     BackgroundImageType        = style.BackgroundImage.MIMEType;
     Color         = style.Color;
     PaddingLeft   = style.PaddingLeft;
     PaddingRight  = style.PaddingRight;
     PaddingTop    = style.PaddingTop;
     PaddingBottom = style.PaddingBottom;
 }