Class which exposes the various print options available for a worksheet which can be saved with both a worksheet and a custom view.

Inheritance

Inherited from: PrintOptionsBase

Gets or sets the value indicating whether to align header and footer margins with page margins.

public bool AlignHeadersAndFootersWithMargins { get; set; }

Inherited from: PrintOptionsBase

Gets or sets the margin at the bottom of each printed page of the worksheet, specified in inches.

public double BottomMargin { get; set; }

Inherited from: PrintOptionsBase

Gets or sets the value indicating whether the printed pages should be printed using draft quality.

public bool DraftQuality { get; set; }

Inherited from: PrintOptionsBase

Gets or sets the footer for each page of the printed worksheet.

public string Footer { get; set; }

Inherited from: PrintOptionsBase

Gets or sets the footer margin for each printed page of the worksheet, specified in inches.

public double FooterMargin { get; set; }

Inherited from: PrintOptionsBase

Gets or sets the header for each page of the printed worksheet.

public string Header { get; set; }

Inherited from: PrintOptionsBase

Gets or sets the header margin for each printed page of the worksheet, specified in inches.

public double HeaderMargin { get; set; }

Inherited from: PrintOptionsBase

Gets or sets the margin at the left of each printed page of the worksheet, specified in inches.

public double LeftMargin { get; set; }

Inherited from: PrintOptionsBase

Gets or sets the number of copies to print.

public int NumberOfCopies { get; set; }

Inherited from: PrintOptionsBase

Gets or sets the orientation for each page of the printed worksheet.

public Orientation Orientation { get; set; }

Inherited from: PrintOptionsBase

Returns the resolved orientation for each page of the printed worksheet.

public Orientation OrientationResolved { get; }

Inherited from: PrintOptionsBase

Gets or sets the method with which pages are numbered.

public PageNumbering PageNumbering { get; set; }

Inherited from: PrintOptionsBase

Gets or sets the paper size for each printed page of the worksheet.

public PaperSize PaperSize { get; set; }

Inherited from: PrintOptionsBase

Gets or sets the way error values of cells are printed.

public PrintErrors PrintErrors { get; set; }

Inherited from: PrintOptionsBase

Gets or sets the value indicating whether the worksheet should be printed in black and white.

public bool PrintInBlackAndWhite { get; set; }

Inherited from: PrintOptionsBase

Gets or sets the way cell comments are printed.

public PrintNotes PrintNotes { get; set; }

Inherited from: PrintOptionsBase

Gets or sets the horizontal print resolution in DPI.

public int Resolution { get; set; }

Inherited from: PrintOptionsBase

Gets or sets the margin at the right of each printed page of the worksheet, specified in inches.

public double RightMargin { get; set; }

Inherited from: PrintOptionsBase

Gets or sets the value indicating whether to scale the headers and footers with the document scaling.

public bool ScaleHeadersAndFootersWithDocument { get; set; }

Inherited from: PrintOptionsBase

Gets or sets the page number for the first printed page of the worksheet.

public int StartPageNumber { get; set; }

Inherited from: PrintOptionsBase

Gets or sets the margin at the top of each printed page of the worksheet, specified in inches.

public double TopMargin { get; set; }

Inherited from: PrintOptionsBase

Gets or sets the vertical print resolution in DPI.

public int VerticalResolution { get; set; }

Gets or sets the value indicating whether the printed pages should be centered horizontally.

public bool CenterHorizontally { get; set; }

Gets or sets the value indicating whether the printed pages should be centered vertically.

public bool CenterVertically { get; set; }

Gets or sets the range of columns which should be printed on every page.

public RepeatTitleRange ColumnsToRepeatAtLeft { get; set; }

Gets the collection of horizontal page breaks in the .

public HorizontalPageBreakCollection HorizontalPageBreaks { get; }

Gets or sets the maximum number of pages allowed in the horizontal direction to print the worksheet.

public int MaxPagesHorizontally { get; set; }

Gets or sets the maximum number of pages allowed in the vertical direction to print the worksheet.

public int MaxPagesVertically { get; set; }

Gets or sets the order in which to print pages for multiple page worksheets.

public PageOrder PageOrder { get; set; }

Gets the collection of print areas in the .

public PrintAreasCollection PrintAreas { get; }

Gets or sets the value which indicates whether to print the worksheet gridlines.

public bool PrintGridlines { get; set; }

Gets or sets the value indicating whether to print row and column headers.

public bool PrintRowAndColumnHeaders { get; set; }

Gets or sets the range of rows which should be printed on every page.

public RepeatTitleRange RowsToRepeatAtTop { get; set; }

Gets or sets the scaling factor to use when printing the worksheet.

public int ScalingFactor { get; set; }

Gets or sets the method for scaling the worksheet when it is printed.

public ScalingType ScalingType { get; set; }

Gets the collection of vertical page breaks in the .

public VerticalPageBreakCollection VerticalPageBreaks { get; }

Clears all page breaks from the .

public void ClearPageBreaks()

Returns any

Inserts a horizontal and/or vertical page break before the specified cell.

public void InsertPageBreak(WorksheetCell cell)

Parameters

  • cell: WorksheetCell

Returns any

Inserts a vertical page break to the left of the specified column.

public void InsertPageBreak(WorksheetColumn column)

Parameters

  • column: WorksheetColumn

Returns any

Inserts a horizontal page break above the specified row.

public void InsertPageBreak(WorksheetRow row)

Parameters

  • row: WorksheetRow

Returns any

Resets the print options to their default settings.

public override void Reset()

Returns any