public static CT_DefaultShapeDefinition Parse(XmlNode node, XmlNamespaceManager namespaceManager) { if (node == null) { return(null); } CT_DefaultShapeDefinition ctObj = new CT_DefaultShapeDefinition(); foreach (XmlNode childNode in node.ChildNodes) { if (childNode.LocalName == "spPr") { ctObj.spPr = CT_ShapeProperties.Parse(childNode, namespaceManager); } else if (childNode.LocalName == "bodyPr") { ctObj.bodyPr = CT_TextBodyProperties.Parse(childNode, namespaceManager); } else if (childNode.LocalName == "lstStyle") { ctObj.lstStyle = CT_TextListStyle.Parse(childNode, namespaceManager); } else if (childNode.LocalName == "style") { ctObj.style = CT_ShapeStyle.Parse(childNode, namespaceManager); } else if (childNode.LocalName == "extLst") { ctObj.extLst = CT_OfficeArtExtensionList.Parse(childNode, namespaceManager); } } return(ctObj); }
public static CT_ObjectStyleDefaults Parse(XmlNode node, XmlNamespaceManager namespaceManager) { if (node == null) { return(null); } CT_ObjectStyleDefaults ctObj = new CT_ObjectStyleDefaults(); foreach (XmlNode childNode in node.ChildNodes) { if (childNode.LocalName == "spDef") { ctObj.spDef = CT_DefaultShapeDefinition.Parse(childNode, namespaceManager); } else if (childNode.LocalName == "lnDef") { ctObj.lnDef = CT_DefaultShapeDefinition.Parse(childNode, namespaceManager); } else if (childNode.LocalName == "txDef") { ctObj.txDef = CT_DefaultShapeDefinition.Parse(childNode, namespaceManager); } else if (childNode.LocalName == "extLst") { ctObj.extLst = CT_OfficeArtExtensionList.Parse(childNode, namespaceManager); } } return(ctObj); }
public CT_ObjectStyleDefaults() { this.extLstField = new CT_OfficeArtExtensionList(); this.txDefField = new CT_DefaultShapeDefinition(); this.lnDefField = new CT_DefaultShapeDefinition(); this.spDefField = new CT_DefaultShapeDefinition(); }
public static CT_DefaultShapeDefinition Parse(XmlNode node, XmlNamespaceManager namespaceManager) { if (node == null) return null; CT_DefaultShapeDefinition ctObj = new CT_DefaultShapeDefinition(); foreach (XmlNode childNode in node.ChildNodes) { if (childNode.LocalName == "spPr") ctObj.spPr = CT_ShapeProperties.Parse(childNode, namespaceManager); else if (childNode.LocalName == "bodyPr") ctObj.bodyPr = CT_TextBodyProperties.Parse(childNode, namespaceManager); else if (childNode.LocalName == "lstStyle") ctObj.lstStyle = CT_TextListStyle.Parse(childNode, namespaceManager); else if (childNode.LocalName == "style") ctObj.style = CT_ShapeStyle.Parse(childNode, namespaceManager); else if (childNode.LocalName == "extLst") ctObj.extLst = CT_OfficeArtExtensionList.Parse(childNode, namespaceManager); } return ctObj; }