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