MCPcopy Create free account
hub / github.com/MicrosoftEdge/WebView2Samples / SamplePrintSettings

Class SamplePrintSettings

SampleApps/WebView2APISample/AppWindow.h:72–90  ·  view source on GitHub ↗

SamplePrintSettings also defaults to the defaults of the ICoreWebView2PrintSettings defaults.

Source from the content-addressed store, hash-verified

70// SamplePrintSettings also defaults to the defaults of the ICoreWebView2PrintSettings
71// defaults.
72struct SamplePrintSettings
73{
74 COREWEBVIEW2_PRINT_ORIENTATION Orientation = COREWEBVIEW2_PRINT_ORIENTATION_PORTRAIT;
75 int Copies = 1;
76 int PagesPerSide = 1;
77 std::wstring Pages = L"";
78 COREWEBVIEW2_PRINT_COLLATION Collation = COREWEBVIEW2_PRINT_COLLATION_DEFAULT;
79 COREWEBVIEW2_PRINT_COLOR_MODE ColorMode = COREWEBVIEW2_PRINT_COLOR_MODE_DEFAULT;
80 COREWEBVIEW2_PRINT_DUPLEX Duplex = COREWEBVIEW2_PRINT_DUPLEX_DEFAULT;
81 COREWEBVIEW2_PRINT_MEDIA_SIZE Media = COREWEBVIEW2_PRINT_MEDIA_SIZE_DEFAULT;
82 double PaperWidth = 8.5;
83 double PaperHeight = 11;
84 double ScaleFactor = 1.0;
85 bool PrintBackgrounds = false;
86 bool HeaderAndFooter = false;
87 bool ShouldPrintSelectionOnly = false;
88 std::wstring HeaderTitle = L"";
89 std::wstring FooterUri = L"";
90};
91
92// Port range configuration
93struct PortRangeConfig

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected