Beispiel #1
0
        public object Clone()
        {
            var style = new CSSStyleDeclaration
            {
                Color      = this.Color.Clone() as CSSColor,
                Background = Background.Clone() as CSSBackground,
                Padding    = Padding.Clone() as CSSPadding,
                Margin     = Margin.Clone() as CSSMargin,
                Border     = Border.Clone() as CSSBorder,
                Cursor     = Cursor.Clone() as CSSCursor,
                Float      = Float.Clone() as CSSFloat,
                Font       = Font.Clone() as CSSFont,
                Left       = Left.Clone() as CSSNumber,
                Right      = Right.Clone() as CSSNumber,
                Width      = Width.Clone() as CSSNumber,
                Height     = Height.Clone() as CSSNumber,
                Display    = Display.Clone() as CSSDisplay,
                Position   = Position.Clone() as CSSPosition
            };

            return(style);
        }