public override void FromXmlNode(XmlNode node) { this.ID = XmlHelper.GetAttributeText(node, "ID"); this.Name = XmlHelper.GetAttributeText(node, "Name"); XmlNode alignmentNode = node.SelectSingleNode("ss:Alignment", Namespaces.GetNamespaceManager()); if (alignmentNode != null) { Alignment.FromXmlNode(alignmentNode); } XmlNode bordersNode = node.SelectSingleNode("ss:Borders", Namespaces.GetNamespaceManager()); if (bordersNode != null) { Borders.FromXmlNode(bordersNode); } XmlNode fontNode = node.SelectSingleNode("ss:Font", Namespaces.GetNamespaceManager()); if (fontNode != null) { Font.FromXmlNode(fontNode); } XmlNode interiorNode = node.SelectSingleNode("ss:Interior", Namespaces.GetNamespaceManager()); if (interiorNode != null) { Interior.FromXmlNode(interiorNode); } XmlNode numberFormatNode = node.SelectSingleNode("ss:NumberFormat", Namespaces.GetNamespaceManager()); if (numberFormatNode != null) { NumberFormat.FromXmlNode(numberFormatNode); } XmlNode protectionNode = node.SelectSingleNode("ss:Protection", Namespaces.GetNamespaceManager()); if (protectionNode != null) { Protection.FromXmlNode(protectionNode); } }