Пример #1
0
 public CT_BorderPr AddNewLeft()
 {
     if (this.leftField == null)
     {
         this.leftField = new CT_BorderPr();
     }
     return(this.leftField);
 }
Пример #2
0
 public CT_BorderPr AddNewRight()
 {
     if (this.rightField == null)
     {
         this.rightField = new CT_BorderPr();
     }
     return(this.rightField);
 }
Пример #3
0
 public CT_BorderPr AddNewBottom()
 {
     if (this.bottomField == null)
     {
         this.bottomField = new CT_BorderPr();
     }
     return(this.bottomField);
 }
Пример #4
0
 public CT_BorderPr AddNewDiagonal()
 {
     if (this.diagonalField == null)
     {
         this.diagonalField = new CT_BorderPr();
     }
     return(this.diagonalField);
 }
Пример #5
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);
        }
Пример #6
0
 public CT_BorderPr AddNewTop()
 {
     if (this.topField == null)
     {
         this.topField = new CT_BorderPr();
     }
     return(this.topField);
 }
Пример #7
0
 public CT_BorderPr Copy()
 {
     CT_BorderPr obj = new CT_BorderPr();
     if (IsSetColor())
     {
         obj.color = color.Copy();
     }
     if (IsSetStyle())
     {
         obj.style = style;
     }
     return obj;
 }
Пример #8
0
 public static CT_BorderPr Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     if (node == null)
         return null;
     CT_BorderPr ctObj = new CT_BorderPr();
     if (node.Attributes["style"] != null)
         ctObj.style = (ST_BorderStyle)Enum.Parse(typeof(ST_BorderStyle), node.Attributes["style"].Value);
     foreach (XmlNode childNode in node.ChildNodes)
     {
         if (childNode.LocalName == "color")
             ctObj.color = CT_Color.Parse(childNode, namespaceManager);
     }
     return ctObj;
 }
Пример #9
0
        public static CT_Border Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_Border ctObj = new CT_Border();

            ctObj.diagonalUp   = XmlHelper.ReadBool(node.Attributes["diagonalUp"]);
            ctObj.diagonalDown = XmlHelper.ReadBool(node.Attributes["diagonalDown"]);
            ctObj.outline      = XmlHelper.ReadBool(node.Attributes["outline"]);
            foreach (XmlNode childNode in node.ChildNodes)
            {
                if (childNode.LocalName == "left")
                {
                    ctObj.left = CT_BorderPr.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "right")
                {
                    ctObj.right = CT_BorderPr.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "top")
                {
                    ctObj.top = CT_BorderPr.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "bottom")
                {
                    ctObj.bottom = CT_BorderPr.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "diagonal")
                {
                    ctObj.diagonal = CT_BorderPr.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "vertical")
                {
                    ctObj.vertical = CT_BorderPr.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "horizontal")
                {
                    ctObj.horizontal = CT_BorderPr.Parse(childNode, namespaceManager);
                }
            }
            return(ctObj);
        }
Пример #10
0
        public static CT_BorderPr Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_BorderPr ctObj = new CT_BorderPr();

            if (node.Attributes["style"] != null)
            {
                ctObj.style = (ST_BorderStyle)Enum.Parse(typeof(ST_BorderStyle), node.Attributes["style"].Value);
            }
            foreach (XmlNode childNode in node.ChildNodes)
            {
                if (childNode.LocalName == "color")
                {
                    ctObj.color = CT_Color.Parse(childNode, namespaceManager);
                }
            }
            return(ctObj);
        }
Пример #11
0
 public CT_BorderPr AddNewLeft()
 {
     if (this.leftField == null)
         this.leftField = new CT_BorderPr();
     return this.leftField;
 }
Пример #12
0
 public CT_BorderPr AddNewRight()
 {
     if (this.rightField == null)
         this.rightField = new CT_BorderPr();
     return this.rightField;
 }
Пример #13
0
 public CT_BorderPr AddNewTop()
 {
     if (this.topField == null)
         this.topField = new CT_BorderPr();
     return this.topField;
 }
Пример #14
0
 public void unsetBottom()
 {
     this.bottomField = null;
 }
Пример #15
0
 public void unsetTop()
 {
     this.topField = null;
 }
Пример #16
0
 public void unsetLeft()
 {
     this.leftField = null;
 }
Пример #17
0
 public void unsetTop()
 {
     this.topField = null;
 }
Пример #18
0
 public void unsetDiagonal()
 {
     this.diagonalField = null;
 }
Пример #19
0
 public CT_BorderPr AddNewDiagonal()
 {
     if (this.diagonalField == null)
         this.diagonalField = new CT_BorderPr();
     return this.diagonalField;
 }
Пример #20
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;
 }
Пример #21
0
 public void unsetDiagonal()
 {
     this.diagonalField = null;
 }
Пример #22
0
 public void unsetRight()
 {
     this.rightField = null;
 }
Пример #23
0
 public void unsetLeft()
 {
     this.leftField = null;
 }
Пример #24
0
 public CT_BorderPr AddNewBottom()
 {
     if (this.bottomField == null)
         this.bottomField = new CT_BorderPr();
     return this.bottomField;
 }
Пример #25
0
 public void unsetRight()
 {
     this.rightField = null;
 }
Пример #26
0
 public void unsetBottom()
 {
     this.bottomField = null;
 }