Example #1
0
 public static CT_LsdException Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     if (node == null)
         return null;
     CT_LsdException ctObj = new CT_LsdException();
     ctObj.name = XmlHelper.ReadString(node.Attributes["w:name"]);
     if (node.Attributes["w:locked"] != null)
         ctObj.locked = (ST_OnOff)Enum.Parse(typeof(ST_OnOff), node.Attributes["w:locked"].Value);
     ctObj.uiPriority = XmlHelper.ReadString(node.Attributes["w:uiPriority"]);
     if (node.Attributes["w:semiHidden"] != null)
         ctObj.semiHidden = (ST_OnOff)Enum.Parse(typeof(ST_OnOff), node.Attributes["w:semiHidden"].Value);
     if (node.Attributes["w:unhideWhenUsed"] != null)
         ctObj.unhideWhenUsed = (ST_OnOff)Enum.Parse(typeof(ST_OnOff), node.Attributes["w:unhideWhenUsed"].Value);
     if (node.Attributes["w:qFormat"] != null)
         ctObj.qFormat = (ST_OnOff)Enum.Parse(typeof(ST_OnOff), node.Attributes["w:qFormat"].Value);
     return ctObj;
 }
Example #2
0
 public CT_LsdException AddNewLsdException()
 {
     CT_LsdException lsd = new CT_LsdException();
     if (this.lsdExceptionField == null)
         this.lsdExceptionField = new List<CT_LsdException>();
     this.lsdExceptionField.Add(lsd);
     return lsd;
 }
Example #3
0
File: Styles.cs Project: WPG/npoi
 public CT_LsdException AddNewLsdException()
 {
     CT_LsdException lsd = new CT_LsdException();
     this.lsdExceptionField.Add(lsd);
     return lsd;
 }