Compartilhar via


CoreWebView2PrintSettings Class

Definition

public class CoreWebView2PrintSettings
type CoreWebView2PrintSettings = class
Public Class CoreWebView2PrintSettings
Inheritance
CoreWebView2PrintSettings

Properties

Collation

Printer collation.

ColorMode

Printer color mode.

Copies

Number of copies to print. Minimum value is 1 and the maximum copies count is 999.

Duplex

Printer duplex settings.

FooterUri

The URI in the footer if ShouldPrintHeaderAndFooter is true.

HeaderTitle

The title in the header if ShouldPrintHeaderAndFooter is true.

MarginBottom

The bottom margin in inches.

MarginLeft

The left margin in inches.

MarginRight

The right margin in inches.

MarginTop

The top margin in inches.

MediaSize

Printer media size.

Orientation

The orientation can be portrait or landscape.

PageHeight

The page height in inches.

PageRanges

Page range to print. Defaults to empty string, which means print all pages.

PagesPerSide

Prints multiple pages of a document on a single piece of paper. Choose from 1, 2, 4, 6, 9 or 16.

PageWidth

The page width in inches.

PrinterName

The name of the printer to use.

ScaleFactor

The scale factor is a value between 0.1 and 2.0.

ShouldPrintBackgrounds

true if background colors and images should be printed.

ShouldPrintHeaderAndFooter

true if header and footer should be printed.

ShouldPrintSelectionOnly

true if only the current end user's selection of HTML in the document should be printed.

Applies to