Exemple #1
0
        public XSSFPrintSetup(CT_Worksheet worksheet)
        {
            this.ctWorksheet = worksheet;

            if (ctWorksheet.IsSetPageSetup())
            {
                this.pageSetup = ctWorksheet.pageSetup;
            }
            else
            {
                this.pageSetup = ctWorksheet.AddNewPageSetup();
            }
            if (ctWorksheet.IsSetPageMargins())
            {
                this.pageMargins = ctWorksheet.pageMargins;
            }
            else
            {
                this.pageMargins = ctWorksheet.AddNewPageMargins();
            }
        }
Exemple #2
0
 public CT_PageMargins AddNewPageMargins()
 {
     this.pageMarginsField = new CT_PageMargins();
     return this.pageMarginsField;
 }
Exemple #3
0
 public CT_CustomChartsheetView()
 {
     this.headerFooterField = new CT_HeaderFooter();
     this.pageSetupField = new CT_CsPageSetup();
     this.pageMarginsField = new CT_PageMargins();
     this.scaleField = ((uint)(100));
     this.stateField = ST_SheetState.visible;
     this.zoomToFitField = false;
 }
Exemple #4
0
 public static CT_PageMargins Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     if (node == null)
         return null;
     CT_PageMargins ctObj = new CT_PageMargins();
     ctObj.left = XmlHelper.ReadDouble(node.Attributes["left"]);
     ctObj.right = XmlHelper.ReadDouble(node.Attributes["right"]);
     ctObj.top = XmlHelper.ReadDouble(node.Attributes["top"]);
     ctObj.bottom = XmlHelper.ReadDouble(node.Attributes["bottom"]);
     ctObj.header = XmlHelper.ReadDouble(node.Attributes["header"]);
     ctObj.footer = XmlHelper.ReadDouble(node.Attributes["footer"]);
     return ctObj;
 }
Exemple #5
0
 public CT_Macrosheet()
 {
     this.extLstField = new CT_ExtensionList();
     this.oleObjectsField = new List<CT_OleObject>();
     this.pictureField = new CT_SheetBackgroundPicture();
     this.legacyDrawingHFField = new CT_LegacyDrawing();
     this.legacyDrawingField = new CT_LegacyDrawing();
     this.drawingField = new CT_Drawing();
     this.customPropertiesField = new List<CT_CustomProperty>();
     this.colBreaksField = new CT_PageBreak();
     this.rowBreaksField = new CT_PageBreak();
     this.headerFooterField = new CT_HeaderFooter();
     this.pageSetupField = new CT_PageSetup();
     this.pageMarginsField = new CT_PageMargins();
     this.printOptionsField = new CT_PrintOptions();
     this.conditionalFormattingField = new List<CT_ConditionalFormatting>();
     this.phoneticPrField = new CT_PhoneticPr();
     this.customSheetViewsField = new List<CT_CustomSheetView>();
     this.dataConsolidateField = new CT_DataConsolidate();
     this.sortStateField = new CT_SortState();
     this.autoFilterField = new CT_AutoFilter();
     this.sheetProtectionField = new CT_SheetProtection();
     this.sheetDataField = new List<CT_Row>();
     this.colsField = new List<CT_Col>();
     this.sheetFormatPrField = new CT_SheetFormatPr();
     this.sheetViewsField = new CT_SheetViews();
     this.dimensionField = new CT_SheetDimension();
     this.sheetPrField = new CT_SheetPr();
 }