Exemplo n.º 1
0
        public CT_BorderPr Copy()
        {
            var res = new CT_BorderPr();

            res.colorField = this.colorField == null ? null : this.colorField.Copy();
            res.style      = this.style;
            return(res);
        }
Exemplo n.º 2
0
 public CT_BorderPr AddNewBottom()
 {
     if (this.bottomField == null)
     {
         this.bottomField = new CT_BorderPr();
     }
     return(this.bottomField);
 }
Exemplo n.º 3
0
 public CT_BorderPr AddNewRight()
 {
     if (this.rightField == null)
     {
         this.rightField = new CT_BorderPr();
     }
     return(this.rightField);
 }
Exemplo n.º 4
0
 public CT_BorderPr AddNewLeft()
 {
     if (this.leftField == null)
     {
         this.leftField = new CT_BorderPr();
     }
     return(this.leftField);
 }
Exemplo n.º 5
0
 public CT_BorderPr AddNewDiagonal()
 {
     if (this.diagonalField == null)
     {
         this.diagonalField = new CT_BorderPr();
     }
     return(this.diagonalField);
 }
Exemplo n.º 6
0
 public CT_BorderPr AddNewTop()
 {
     if (this.topField == null)
     {
         this.topField = new CT_BorderPr();
     }
     return(this.topField);
 }
Exemplo n.º 7
0
        public static CT_Border Parse(XElement node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_Border ctObj = new CT_Border();

            ctObj.diagonalUp   = XmlHelper.ReadBool(node.Attribute("diagonalUp"));
            ctObj.diagonalDown = XmlHelper.ReadBool(node.Attribute("diagonalDown"));
            ctObj.outline      = XmlHelper.ReadBool(node.Attribute("outline"));
            foreach (XElement childNode in node.ChildElements())
            {
                if (childNode.Name.LocalName == "left")
                {
                    ctObj.left = CT_BorderPr.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "right")
                {
                    ctObj.right = CT_BorderPr.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "top")
                {
                    ctObj.top = CT_BorderPr.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "bottom")
                {
                    ctObj.bottom = CT_BorderPr.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "diagonal")
                {
                    ctObj.diagonal = CT_BorderPr.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "vertical")
                {
                    ctObj.vertical = CT_BorderPr.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "horizontal")
                {
                    ctObj.horizontal = CT_BorderPr.Parse(childNode, namespaceManager);
                }
            }
            return(ctObj);
        }
Exemplo n.º 8
0
        public static CT_BorderPr Parse(XElement node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_BorderPr ctObj = new CT_BorderPr();

            if (node.Attribute("style") != null)
            {
                ctObj.style = (ST_BorderStyle)Enum.Parse(typeof(ST_BorderStyle), node.Attribute("style").Value);
            }
            foreach (XElement childNode in node.ChildElements())
            {
                if (childNode.Name.LocalName == "color")
                {
                    ctObj.color = CT_Color.Parse(childNode, namespaceManager);
                }
            }
            return(ctObj);
        }
Exemplo n.º 9
0
 public void UnsetBottom()
 {
     this.bottomField = null;
 }
Exemplo n.º 10
0
 public void unsetTop()
 {
     this.topField = null;
 }
Exemplo n.º 11
0
 public void unsetLeft()
 {
     this.leftField = null;
 }
Exemplo n.º 12
0
 public void unsetRight()
 {
     this.rightField = null;
 }
Exemplo n.º 13
0
 public void unsetDiagonal()
 {
     this.diagonalField = null;
 }