Represents the options to send for printing a page.
public class PrintOptions
PrintOptions
Gets or sets the orientation of the pages in the printed document.
public PrintOrientation Orientation { get; set; }
Property Value
Gets or sets a value indicating whether to print background images in the printed document.
public bool OutputBackgroundImages { get; set; }
Property Value
Gets or sets the dimensions for each page in the printed document.
public PrintOptions.PageSize PageDimensions { get; set; }
Property Value
If the value is set to null.
Gets or sets the margins for each page in the doucment.
public PrintOptions.Margins PageMargins { get; set; }
Property Value
If the value is set to null.
Gets or sets the amount which the printed content is zoomed. Valid values are 0.1 to 2.0.
public double ScaleFactor { get; set; }
Property Value
If the value is not set between 0.1 and 2.0.
Gets or sets a value indicating whether to shrink the content to fit the printed page size.
public bool ShrinkToFit { get; set; }
Property Value
Adds a range of pages to be included in the document.
public void AddPageRangeToPrint(string pageRange)
Parameters
pageRange
string
A string of the form "x-y" representing the page numbers to include.
If pageRange
is null or Empty.
-or-
If the requested pageRange
is already included.
-or-
If the requested pageRange
has multiple '-' separators.
-or-
If a bound value is neither empty nor a number.
If pageRange
has a negative lower bound.
-or-
If pageRange
has an upper bound less than the lower bound.
Adds a page to the list of pages to be included in the document.
public void AddPageToPrint(int pageNumber)
Parameters
pageNumber
int
The page number to be included in the document.
If pageNumber
is negative.
If the requested page has already been added.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4