Exemple #1
0
        internal static CT_RPR Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
                return null;
            CT_RPR ctObj = new CT_RPR();
            foreach (XmlNode childNode in node.ChildNodes)
            {
                if (childNode.LocalName == "lit")
                {
                    ctObj.litField = CT_OnOff.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "nor")
                {
                    ctObj.norField = CT_OnOff.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "aln")
                {
                    ctObj.alnField = CT_OnOff.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "brk")
                {
                    ctObj.brkField = CT_ManualBreak.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "scr")
                {
                    ctObj.scrField = CT_Script.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "sty")
                {
                    ctObj.styField = CT_Style.Parse(childNode, namespaceManager);
                }
            }
            return ctObj;

        }
Exemple #2
0
 /// <summary>
 /// CT_R class constructor
 /// </summary>
 public CT_R()
 {
     this.itemsElementNameField = new ItemsChoiceType6[0];
     this.itemsField = new object[0];
     this.rPr1Field = new CT_RPr();
     this.rPrField = new CT_RPR();
 }