Пример #1
0
 public static CT_ColorScale Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     if (node == null)
         return null;
     CT_ColorScale ctObj = new CT_ColorScale();
     ctObj.cfvo = new List<CT_Cfvo>();
     ctObj.color = new List<CT_Color>();
     foreach (XmlNode childNode in node.ChildNodes)
     {
         if (childNode.LocalName == "cfvo")
             ctObj.cfvo.Add(CT_Cfvo.Parse(childNode, namespaceManager));
         else if (childNode.LocalName == "color")
             ctObj.color.Add(CT_Color.Parse(childNode, namespaceManager));
     }
     return ctObj;
 }
Пример #2
0
 public CT_CfRule()
 {
     this.extLstField = new CT_ExtensionList();
     this.iconSetField = new CT_IconSet();
     this.dataBarField = new CT_DataBar();
     this.colorScaleField = new CT_ColorScale();
     this.formulaField = new List<string>();
     this.stopIfTrueField = false;
     this.aboveAverageField = true;
     this.percentField = false;
     this.bottomField = false;
     this.equalAverageField = false;
 }