public CT_StyleMatrix() { this.bgFillStyleLstField = new CT_BackgroundFillStyleList(); this.effectStyleLstField = new List <CT_EffectStyleItem>(); this.lnStyleLstField = new List <CT_LineProperties>(); this.fillStyleLstField = new CT_FillStyleList(); this.nameField = ""; }
public CT_StyleMatrix() { this.bgFillStyleLstField = new CT_BackgroundFillStyleList(); this.effectStyleLstField = new List<CT_EffectStyleItem>(); this.lnStyleLstField = new List<CT_LineProperties>(); this.fillStyleLstField = new CT_FillStyleList(); this.nameField = ""; }
public static CT_BackgroundFillStyleList Parse(XmlNode node, XmlNamespaceManager namespaceManager) { if (node == null) return null; CT_BackgroundFillStyleList ctObj = new CT_BackgroundFillStyleList(); ctObj.blipFill = new List<CT_BlipFillProperties>(); ctObj.gradFill = new List<CT_GradientFillProperties>(); ctObj.grpFill = new List<CT_GroupFillProperties>(); ctObj.noFill = new List<CT_NoFillProperties>(); ctObj.pattFill = new List<CT_PatternFillProperties>(); ctObj.solidFill = new List<CT_SolidColorFillProperties>(); foreach (XmlNode childNode in node.ChildNodes) { if (childNode.LocalName == "blipFill") ctObj.blipFill.Add(CT_BlipFillProperties.Parse(childNode, namespaceManager)); else if (childNode.LocalName == "gradFill") ctObj.gradFill.Add(CT_GradientFillProperties.Parse(childNode, namespaceManager)); else if (childNode.LocalName == "grpFill") ctObj.grpFill.Add(new CT_GroupFillProperties()); else if (childNode.LocalName == "noFill") ctObj.noFill.Add(new CT_NoFillProperties()); else if (childNode.LocalName == "pattFill") ctObj.pattFill.Add(CT_PatternFillProperties.Parse(childNode, namespaceManager)); else if (childNode.LocalName == "solidFill") ctObj.solidFill.Add(CT_SolidColorFillProperties.Parse(childNode, namespaceManager)); } return ctObj; }