public CT_EffectList() { this.softEdgeField = new CT_SoftEdgesEffect(); this.reflectionField = new CT_ReflectionEffect(); this.prstShdwField = new CT_PresetShadowEffect(); this.outerShdwField = new CT_OuterShadowEffect(); this.innerShdwField = new CT_InnerShadowEffect(); this.glowField = new CT_GlowEffect(); this.fillOverlayField = new CT_FillOverlayEffect(); this.blurField = new CT_BlurEffect(); }
public static CT_FillOverlayEffect Parse(XmlNode node, XmlNamespaceManager namespaceManager) { if (node == null) return null; CT_FillOverlayEffect ctObj = new CT_FillOverlayEffect(); if (node.Attributes["blend"] != null) ctObj.blend = (ST_BlendMode)Enum.Parse(typeof(ST_BlendMode), node.Attributes["blend"].Value); foreach (XmlNode childNode in node.ChildNodes) { if (childNode.LocalName == "noFill") ctObj.noFill = new CT_NoFillProperties(); else if (childNode.LocalName == "solidFill") ctObj.solidFill = CT_SolidColorFillProperties.Parse(childNode, namespaceManager); else if (childNode.LocalName == "gradFill") ctObj.gradFill = CT_GradientFillProperties.Parse(childNode, namespaceManager); else if (childNode.LocalName == "blipFill") ctObj.blipFill = CT_BlipFillProperties.Parse(childNode, namespaceManager); else if (childNode.LocalName == "pattFill") ctObj.pattFill = CT_PatternFillProperties.Parse(childNode, namespaceManager); else if (childNode.LocalName == "grpFill") ctObj.grpFill = new CT_GroupFillProperties(); } return ctObj; }