A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://seleniumhq.github.io/selenium/docs/api/dotnet/webdriver/OpenQA.Selenium.PrintOptions.html below:

Class PrintOptions

Class PrintOptions
Namespace
OpenQA.Selenium
Assembly
WebDriver.dll

Represents the options to send for printing a page.

public class PrintOptions
Inheritance

PrintOptions

Inherited Members
Properties Orientation

Gets or sets the orientation of the pages in the printed document.

public PrintOrientation Orientation { get; set; }
Property Value
PrintOrientation
OutputBackgroundImages

Gets or sets a value indicating whether to print background images in the printed document.

public bool OutputBackgroundImages { get; set; }
Property Value
bool
PageDimensions

Gets or sets the dimensions for each page in the printed document.

public PrintOptions.PageSize PageDimensions { get; set; }
Property Value
PrintOptions.PageSize
Exceptions
ArgumentNullException

If the value is set to null.

PageMargins

Gets or sets the margins for each page in the doucment.

public PrintOptions.Margins PageMargins { get; set; }
Property Value
PrintOptions.Margins
Exceptions
ArgumentNullException

If the value is set to null.

ScaleFactor

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
double
Exceptions
ArgumentOutOfRangeException

If the value is not set between 0.1 and 2.0.

ShrinkToFit

Gets or sets a value indicating whether to shrink the content to fit the printed page size.

public bool ShrinkToFit { get; set; }
Property Value
bool
Methods

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.

Exceptions
ArgumentException

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.

ArgumentOutOfRangeException

If pageRange has a negative lower bound.

-or-

If pageRange has an upper bound less than the lower bound.

AddPageToPrint(int)

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.

Exceptions
ArgumentOutOfRangeException

If pageNumber is negative.

ArgumentException

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