CoreWebView2PrintSettings.MediaSize Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.