|
1 | 1 | # Background |
2 | | -When open a PDF file in Edge, there will be a toolbar at the top. The toolbar provide the functionality like print, save and annotation. |
3 | | -And this PDF viewer is also available in WebView2. And we provide the API to enable users to customization the PDF toolbar. |
| 2 | +When opening a PDF file in Edge, there will be a toolbar at the top. The toolbar provides functionality like print, save and adding annotations. |
| 3 | +This PDF viewer is also available in WebView2. And we provide this new API to enable end developers to customize the PDF toolbar. |
4 | 4 |
|
5 | 5 |
|
6 | 6 | # Description |
7 | | -We add a new `HiddenPdfToolbarItems` property in `CoreWebView2Settings`. This API allows users to hide buttons on the PDF toolbar. |
| 7 | +We add a new `HiddenPdfToolbarItems` property in `CoreWebView2Settings`. This API allows end developers to hide buttons on the PDF toolbar. |
8 | 8 | Currently, this API can hide the _save button_, _save as button_, and _print button_. |
9 | 9 | By default, `HiddenPdfToolbarItems` is equal to `None` which means no button will be hidden. |
10 | 10 |
|
@@ -85,7 +85,9 @@ cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(COREWEBVIEW2_PDF_TOOLBAR_ITEM);") |
85 | 85 |
|
86 | 86 | [uuid(183e7052-1d03-43a0-ab99-98e043b66b39), object, pointer_default(unique)] |
87 | 87 | interface ICoreWebView2Settings6 : ICoreWebView2Settings5 { |
88 | | - /// `HiddenPdfToolbarItems` is used to customize the PDF toolbar items. By default, it displays all of the items. |
| 88 | + /// `HiddenPdfToolbarItems` is used to customize the PDF toolbar items. By default, it is COREWEBVIEW2_PDF_TOOLBAR_ITEM_NONE and so it displays all of the items. |
| 89 | + /// Changes to this property apply to all CoreWebView2s in the same environment and using the same profile. |
| 90 | + /// Changes to this setting apply only after the next navigation. |
89 | 91 | /// \snippet SettingsComponent.cpp ToggleHidePdfToolbarItems |
90 | 92 |
|
91 | 93 | [propget] HRESULT HiddenPdfToolbarItems([out, retval] COREWEBVIEW2_PDF_TOOLBAR_ITEM* hidden_pdf_toolbar_items); |
|
0 commit comments