Example #1
0
        public static CT_TableStyleElement Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_TableStyleElement ctObj = new CT_TableStyleElement();

            if (node.Attributes["type"] != null)
            {
                ctObj.type = (ST_TableStyleType)Enum.Parse(typeof(ST_TableStyleType), node.Attributes["type"].Value);
            }
            ctObj.size  = XmlHelper.ReadUInt(node.Attributes["size"]);
            ctObj.dxfId = XmlHelper.ReadUInt(node.Attributes["dxfId"]);
            return(ctObj);
        }
Example #2
0
        public static CT_TableStyle Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_TableStyle ctObj = new CT_TableStyle();

            ctObj.name              = XmlHelper.ReadString(node.Attributes["name"]);
            ctObj.pivot             = XmlHelper.ReadBool(node.Attributes["pivot"]);
            ctObj.table             = XmlHelper.ReadBool(node.Attributes["table"]);
            ctObj.count             = XmlHelper.ReadUInt(node.Attributes["count"]);
            ctObj.tableStyleElement = new List <CT_TableStyleElement>();
            foreach (XmlNode childNode in node.ChildNodes)
            {
                if (childNode.LocalName == "tableStyleElement")
                {
                    ctObj.tableStyleElement.Add(CT_TableStyleElement.Parse(childNode, namespaceManager));
                }
            }
            return(ctObj);
        }
Example #3
0
 public static CT_TableStyleElement Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     if (node == null)
         return null;
     CT_TableStyleElement ctObj = new CT_TableStyleElement();
     if (node.Attributes["type"] != null)
         ctObj.type = (ST_TableStyleType)Enum.Parse(typeof(ST_TableStyleType), node.Attributes["type"].Value);
     ctObj.size = XmlHelper.ReadUInt(node.Attributes["size"]);
     ctObj.dxfId = XmlHelper.ReadUInt(node.Attributes["dxfId"]);
     return ctObj;
 }