示例#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 CT_PrintSettings AddNewPrintSettings()
 {
     this.printSettingsField = new CT_PrintSettings();
     return this.printSettingsField;
 }
示例#3
0
 public static CT_PrintSettings Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     if (node == null)
         return null;
     CT_PrintSettings ctObj = new CT_PrintSettings();
     foreach (XmlNode childNode in node.ChildNodes)
     {
         if (childNode.LocalName == "headerFooter")
             ctObj.headerFooter = CT_HeaderFooter.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "pageMargins")
             ctObj.pageMargins = CT_PageMargins.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "pageSetup")
             ctObj.pageSetup = CT_PageSetup.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "legacyDrawingHF")
             ctObj.legacyDrawingHF = CT_RelId.Parse(childNode, namespaceManager);
     }
     return ctObj;
 }