Exemple #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();
 }
Exemple #2
0
 public static CT_InnerShadowEffect Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     if (node == null)
         return null;
     CT_InnerShadowEffect ctObj = new CT_InnerShadowEffect();
     ctObj.blurRad = XmlHelper.ReadLong(node.Attributes["blurRad"]);
     ctObj.dist = XmlHelper.ReadLong(node.Attributes["dist"]);
     ctObj.dir = XmlHelper.ReadInt(node.Attributes["dir"]);
     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;
 }