Esempio n. 1
0
 internal CSSMarginProperty()
     : base(PropertyNames.Margin)
 {
     _inherited = false;
     _left      = new CSSMarginLeftProperty();
     _right     = new CSSMarginRightProperty();
     _top       = new CSSMarginTopProperty();
     _bottom    = new CSSMarginBottomProperty();
 }
 internal CSSMarginProperty()
     : base(PropertyNames.Margin)
 {
     _inherited = false;
     _left = new CSSMarginLeftProperty();
     _right = new CSSMarginRightProperty();
     _top = new CSSMarginTopProperty();
     _bottom = new CSSMarginBottomProperty();
 }
Esempio n. 3
0
        Boolean Check(CSSValue[] values)
        {
            var target = new CSSProperty[] { new CSSMarginTopProperty(), new CSSMarginRightProperty(), new CSSMarginBottomProperty(), new CSSMarginLeftProperty() };

            for (int i = 0; i < 4; i++)
            {
                target[i].Value = values[i];

                if (target[i].Value != values[i])
                {
                    return(false);
                }
            }

            _top    = (CSSMarginTopProperty)target[0];
            _right  = (CSSMarginRightProperty)target[1];
            _bottom = (CSSMarginBottomProperty)target[2];
            _left   = (CSSMarginLeftProperty)target[3];
            return(true);
        }
        Boolean Check(CSSValue[] values)
        {
            var target = new CSSProperty[] { new CSSMarginTopProperty(), new CSSMarginRightProperty(), new CSSMarginBottomProperty(), new CSSMarginLeftProperty() };

            for (int i = 0; i < 4; i++)
            {
                target[i].Value = values[i];

                if (target[i].Value != values[i])
                    return false;
            }

            _top = (CSSMarginTopProperty)target[0];
            _right = (CSSMarginRightProperty)target[1];
            _bottom = (CSSMarginBottomProperty)target[2];
            _left = (CSSMarginLeftProperty)target[3];
            return true;
        }