Esempio n. 1
0
 public static CT_Border Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     if (node == null)
         return null;
     CT_Border ctObj = new CT_Border();
     if (node.Attributes["w:val"] != null)
         ctObj.val = (ST_Border)Enum.Parse(typeof(ST_Border), node.Attributes["w:val"].Value);
     ctObj.color = XmlHelper.ReadString(node.Attributes["w:color"]);
     if (node.Attributes["w:themeColor"] != null)
         ctObj.themeColor = (ST_ThemeColor)Enum.Parse(typeof(ST_ThemeColor), node.Attributes["w:themeColor"].Value);
     ctObj.themeTint = XmlHelper.ReadBytes(node.Attributes["w:themeTint"]);
     ctObj.themeShade = XmlHelper.ReadBytes(node.Attributes["w:themeShade"]);
     ctObj.sz = XmlHelper.ReadULong(node.Attributes["w:sz"]);
     ctObj.space = XmlHelper.ReadULong(node.Attributes["w:space"]);
     if (node.Attributes["w:shadow"] != null)
         ctObj.shadow = (ST_OnOff)Enum.Parse(typeof(ST_OnOff), node.Attributes["w:shadow"].Value);
     if (node.Attributes["w:frame"] != null)
         ctObj.frame = (ST_OnOff)Enum.Parse(typeof(ST_OnOff), node.Attributes["w:frame"].Value);
     return ctObj;
 }
Esempio n. 2
0
 public CT_PageBorders()
 {
     this.rightField = new CT_Border();
     this.bottomField = new CT_Border();
     this.leftField = new CT_Border();
     this.topField = new CT_Border();
 }