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_ReflectionEffect Parse(XmlNode node, XmlNamespaceManager namespaceManager) { if (node == null) return null; CT_ReflectionEffect ctObj = new CT_ReflectionEffect(); ctObj.blurRad = XmlHelper.ReadLong(node.Attributes["blurRad"]); ctObj.stA = XmlHelper.ReadInt(node.Attributes["stA"]); ctObj.stPos = XmlHelper.ReadInt(node.Attributes["stPos"]); ctObj.endA = XmlHelper.ReadInt(node.Attributes["endA"]); ctObj.endPos = XmlHelper.ReadInt(node.Attributes["endPos"]); ctObj.dist = XmlHelper.ReadLong(node.Attributes["dist"]); ctObj.dir = XmlHelper.ReadInt(node.Attributes["dir"]); ctObj.fadeDir = XmlHelper.ReadInt(node.Attributes["fadeDir"]); ctObj.sx = XmlHelper.ReadInt(node.Attributes["sx"]); ctObj.sy = XmlHelper.ReadInt(node.Attributes["sy"]); ctObj.kx = XmlHelper.ReadInt(node.Attributes["kx"]); ctObj.ky = XmlHelper.ReadInt(node.Attributes["ky"]); if (node.Attributes["algn"] != null) ctObj.algn = (ST_RectAlignment)Enum.Parse(typeof(ST_RectAlignment), node.Attributes["algn"].Value); ctObj.rotWithShape = XmlHelper.ReadBool(node.Attributes["rotWithShape"]); return ctObj; }