internal CSSPaddingProperty() : base(PropertyNames.Padding) { _inherited = false; _left = new CSSPaddingLeftProperty(); _right = new CSSPaddingRightProperty(); _top = new CSSPaddingTopProperty(); _bottom = new CSSPaddingBottomProperty(); }
Boolean Check(CSSValue[] values) { var target = new CSSProperty[] { new CSSPaddingTopProperty(), new CSSPaddingRightProperty(), new CSSPaddingBottomProperty(), new CSSPaddingLeftProperty() }; for (int i = 0; i < 4; i++) { target[i].Value = values[i]; if (target[i].Value != values[i]) { return(false); } } _top = (CSSPaddingTopProperty)target[0]; _right = (CSSPaddingRightProperty)target[1]; _bottom = (CSSPaddingBottomProperty)target[2]; _left = (CSSPaddingLeftProperty)target[3]; return(true); }