コード例 #1
0
        private double dyDescentField; //x14ac:dyDescent

        public static CT_Row Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_Row ctObj = new CT_Row();

            ctObj.r              = XmlHelper.ReadUInt(node.Attributes["r"]);
            ctObj.spans          = XmlHelper.ReadString(node.Attributes["spans"]);
            ctObj.s              = XmlHelper.ReadUInt(node.Attributes["s"]);
            ctObj.customFormat   = XmlHelper.ReadBool(node.Attributes["customFormat"]);
            ctObj.dyDescentField = XmlHelper.ReadDouble(node.Attributes["x14ac:dyDescent"]);
            if (node.Attributes["ht"] != null)
            {
                ctObj.ht = XmlHelper.ReadDouble(node.Attributes["ht"]);
            }
            ctObj.hidden       = XmlHelper.ReadBool(node.Attributes["hidden"]);
            ctObj.outlineLevel = XmlHelper.ReadByte(node.Attributes["outlineLevel"]);
            ctObj.customHeight = XmlHelper.ReadBool(node.Attributes["customHeight"]);
            ctObj.collapsed    = XmlHelper.ReadBool(node.Attributes["collapsed"]);
            ctObj.thickTop     = XmlHelper.ReadBool(node.Attributes["thickTop"]);
            ctObj.thickBot     = XmlHelper.ReadBool(node.Attributes["thickBot"]);
            ctObj.ph           = XmlHelper.ReadBool(node.Attributes["ph"]);
            ctObj.c            = new List <CT_Cell>();
            foreach (XmlNode childNode in node.ChildNodes)
            {
                if (childNode.LocalName == "extLst")
                {
                    ctObj.extLst = CT_ExtensionList.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "c")
                {
                    ctObj.c.Add(CT_Cell.Parse(childNode, namespaceManager));
                }
            }
            return(ctObj);
        }