Exemple #1
0
 public static CT_DataBar Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     if (node == null)
         return null;
     CT_DataBar ctObj = new CT_DataBar();
     ctObj.minLength = XmlHelper.ReadUInt(node.Attributes["minLength"]);
     ctObj.maxLength = XmlHelper.ReadUInt(node.Attributes["maxLength"]);
     ctObj.showValue = XmlHelper.ReadBool(node.Attributes["showValue"]);
     ctObj.cfvo = new List<CT_Cfvo>();
     foreach (XmlNode childNode in node.ChildNodes)
     {
         if (childNode.LocalName == "color")
             ctObj.color = CT_Color.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "cfvo")
             ctObj.cfvo.Add(CT_Cfvo.Parse(childNode, namespaceManager));
     }
     return ctObj;
 }
Exemple #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;
 }