示例#1
0
文件: Chart.cs 项目: xoposhiy/npoi
 public CT_ChartSpace()
 {
     this.extLstField = new List<CT_Extension>();
     this.userShapesField = new CT_RelId();
     this.printSettingsField = new CT_PrintSettings();
     this.externalDataField = new CT_ExternalData();
     this.txPrField = new CT_TextBody();
     this.spPrField = new CT_ShapeProperties();
     this.chartField = new CT_Chart();
     this.protectionField = new CT_Protection();
     this.pivotSourceField = new CT_PivotSource();
     this.clrMapOvrField = new CT_ColorMapping();
     this.styleField = new CT_Style();
     this.roundedCornersField = new CT_Boolean();
     this.langField = new CT_TextLanguageID();
     this.date1904Field = new CT_Boolean();
 }
示例#2
0
 public static CT_Protection Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     if (node == null)
         return null;
     CT_Protection ctObj = new CT_Protection();
     foreach (XmlNode childNode in node.ChildNodes)
     {
         if (childNode.LocalName == "chartObject")
             ctObj.chartObject = CT_Boolean.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "data")
             ctObj.data = CT_Boolean.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "formatting")
             ctObj.formatting = CT_Boolean.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "selection")
             ctObj.selection = CT_Boolean.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "userInterface")
             ctObj.userInterface = CT_Boolean.Parse(childNode, namespaceManager);
     }
     return ctObj;
 }