示例#1
0
 public static CT_PathShadeProperties Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     if (node == null)
         return null;
     CT_PathShadeProperties ctObj = new CT_PathShadeProperties();
     if (node.Attributes["path"] != null)
         ctObj.path = (ST_PathShadeType)Enum.Parse(typeof(ST_PathShadeType), node.Attributes["path"].Value);
     foreach (XmlNode childNode in node.ChildNodes)
     {
         if (childNode.LocalName == "fillToRect")
             ctObj.fillToRect = CT_RelativeRect.Parse(childNode, namespaceManager);
     }
     return ctObj;
 }
示例#2
0
 public CT_GradientFillProperties()
 {
     this.tileRectField = new CT_RelativeRect();
     this.pathField = new CT_PathShadeProperties();
     this.linField = new CT_LinearShadeProperties();
     this.gsLstField = new List<CT_GradientStop>();
 }