/// <summary> Copy constructor. Called when copying sheets</summary> /// <param name="copy">the settings to copy /// </param> public SheetSettings(SheetSettings copy) { Assert.verify(copy != null); orientation = copy.orientation; paperSize = copy.paperSize; sheetProtected = copy.sheetProtected; hidden = copy.hidden; selected = false; // don't copy the selected flag headerMargin = copy.headerMargin; footerMargin = copy.footerMargin; scaleFactor = copy.scaleFactor; pageStart = copy.pageStart; fitWidth = copy.fitWidth; fitHeight = copy.fitHeight; horizontalPrintResolution = copy.horizontalPrintResolution; verticalPrintResolution = copy.verticalPrintResolution; leftMargin = copy.leftMargin; rightMargin = copy.rightMargin; topMargin = copy.topMargin; bottomMargin = copy.bottomMargin; fitToPages = copy.fitToPages; password = copy.password; passwordHash = copy.passwordHash; defaultColumnWidth = copy.defaultColumnWidth; defaultRowHeight = copy.defaultRowHeight; zoomFactor = copy.zoomFactor; showGridLines = copy.showGridLines; displayZeroValues = copy.displayZeroValues; horizontalFreeze = copy.horizontalFreeze; verticalFreeze = copy.verticalFreeze; copies = copy.copies; header = new HeaderFooter(copy.header); footer = new HeaderFooter(copy.footer); }
/// <summary> Default constructor</summary> public SheetSettings() { orientation = defaultOrientation; paperSize = defaultPaperSize; sheetProtected = false; hidden = false; selected = false; headerMargin = defaultHeaderMargin; footerMargin = defaultFooterMargin; horizontalPrintResolution = defaultPrintResolution; verticalPrintResolution = defaultPrintResolution; leftMargin = defaultWidthMargin; rightMargin = defaultWidthMargin; topMargin = defaultHeightMargin; bottomMargin = defaultHeightMargin; fitToPages = false; showGridLines = true; printGridLines = false; printHeaders = false; displayZeroValues = true; defaultColumnWidth = defaultDefaultColumnWidth; defaultRowHeight = defaultDefaultRowHeight; zoomFactor = defaultZoomFactor; horizontalFreeze = 0; verticalFreeze = 0; copies = 1; header = new HeaderFooter(); footer = new HeaderFooter(); }