Esempio n. 1
0
 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();
 }
Esempio n. 2
0
 public static CT_GlowEffect Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     if (node == null)
         return null;
     CT_GlowEffect ctObj = new CT_GlowEffect();
     ctObj.rad = XmlHelper.ReadLong(node.Attributes["rad"]);
     foreach (XmlNode childNode in node.ChildNodes)
     {
         if (childNode.LocalName == "scrgbClr")
             ctObj.scrgbClr = CT_ScRgbColor.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "srgbClr")
             ctObj.srgbClr = CT_SRgbColor.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "hslClr")
             ctObj.hslClr = CT_HslColor.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "sysClr")
             ctObj.sysClr = CT_SystemColor.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "schemeClr")
             ctObj.schemeClr = CT_SchemeColor.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "prstClr")
             ctObj.prstClr = CT_PresetColor.Parse(childNode, namespaceManager);
     }
     return ctObj;
 }