次の方法で共有


CoreWebView2PrintSettings.MediaSize Property

Definition

Printer media size.

public Microsoft.Web.WebView2.Core.CoreWebView2PrintMediaSize MediaSize { get; set; }
member this.MediaSize : Microsoft.Web.WebView2.Core.CoreWebView2PrintMediaSize with get, set
Public Property MediaSize As CoreWebView2PrintMediaSize

Property Value

Remarks

See @CoreWebView2PrintMediaSize for descriptions of media size. The default value is @CoreWebView2PrintMediaSize$.Default.

If media size is @CoreWebView2PrintMediaSize$.Custom, you should set the PageWidth and PageHeight.

Printing uses default value of printer supported media size if an invalid value is provided for the specific printer.

This value is ignored in PrintToPdfStreamAsync(CoreWebView2PrintSettings) method.

Applies to