SamplePrintSettings also defaults to the defaults of the ICoreWebView2PrintSettings defaults.
| 70 | // SamplePrintSettings also defaults to the defaults of the ICoreWebView2PrintSettings |
| 71 | // defaults. |
| 72 | struct 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 |
| 93 | struct PortRangeConfig |
nothing calls this directly
no outgoing calls
no test coverage detected