예제 #1
0
        internal void Attach(ElementStyle node, CssBorder border, string side)
        {
            this.border = border;
            this.side = side;

            base.Attach(node);
        }
예제 #2
0
        internal virtual void Attach(ElementStyle node)
        {
            this.node = node;

            foreach (var action in actions)
            {
                action.Act(this);
            }
        }
예제 #3
0
파일: CssBorder.cs 프로젝트: x335/WootzJs
        internal override void Attach(ElementStyle node)
        {
            base.Attach(node);

            if (Left != null)
                Left.Attach(node, this, "left");
            if (Top != null)
                Top.Attach(node, this, "top");
            if (Right != null)
                Right.Attach(node, this, "right");
            if (Bottom != null)
                Bottom.Attach(node, this, "bottom");
        }
예제 #4
0
파일: Style.cs 프로젝트: x335/WootzJs
        internal override void Attach(ElementStyle node)
        {
            base.Attach(node);
//            if (margin != null)
//                margin.Attach(node);
            if (padding != null)
                padding.Attach(node);
            if (border != null)
                border.Attach(node);
            if (boxShadow != null)
                boxShadow.Attach(node);
            if (font != null)
                font.Attach(node);
            if (borderRadius != null)
                borderRadius.Attach(node);
        }