Class CoreWebView2PrintSettings() Foundation
A class for manipulating the internal print settings of a XbpHTMLViewer2 object.
Instances of the CoreWebView2PrintSettings class are used to expose various WebView2-specific output settings via their member variables. Applications can change these settings by first specifying the desired values in a CoreWebView2PrintSettings object, and then passing the settings object to the methods XbpHTMLViewer2():print() or XbpHTMLViewer2():printToFile(). The CoreWebView2PrintSettings class itself handles validation but contains no additional logic.
The member variables of a CoreWebView2PrintSettings object correspond to the native WebView2 options defined in the ICoreWebView2PrintSettings and its derived COM interfaces. More information about the available output settings and their respective values can be found here: https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2printsettings?view=webview2-1.0.3179.45.
Note that these options are distributed over several interfaces (ICoreWebView2PrintSettings, ICoreWebView2PrintSettings2 etc.). The CoreWebView2PrintSettings class allows changing all options which use scalar values via a single interface and currently supports the interfaces ICoreWebView2PrintSettings and ICoreWebViewPrintSettings2.
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.