public static CT_FontScheme Parse(XmlNode node, XmlNamespaceManager namespaceManager) { if (node == null) return null; CT_FontScheme ctObj = new CT_FontScheme(); ctObj.name = XmlHelper.ReadString(node.Attributes["name"]); foreach (XmlNode childNode in node.ChildNodes) { if (childNode.LocalName == "majorFont") ctObj.majorFont = CT_FontCollection.Parse(childNode, namespaceManager); else if (childNode.LocalName == "minorFont") ctObj.minorFont = CT_FontCollection.Parse(childNode, namespaceManager); else if (childNode.LocalName == "extLst") ctObj.extLst = CT_OfficeArtExtensionList.Parse(childNode, namespaceManager); } return ctObj; }
public CT_BaseStylesOverride() { this.fmtSchemeField = new CT_StyleMatrix(); this.fontSchemeField = new CT_FontScheme(); this.clrSchemeField = new CT_ColorScheme(); }