Freigeben über


CoreWebView2Settings.HiddenPdfToolbarItems Property

Definition

Used to customize the PDF toolbar items.

public Microsoft.Web.WebView2.Core.CoreWebView2PdfToolbarItems HiddenPdfToolbarItems { get; set; }
member this.HiddenPdfToolbarItems : Microsoft.Web.WebView2.Core.CoreWebView2PdfToolbarItems with get, set
Public Property HiddenPdfToolbarItems As CoreWebView2PdfToolbarItems

Property Value

Examples

if (WebViewSettings.HiddenPdfToolbarItems.HasFlag(CoreWebView2PdfToolbarItems.Save))
{
    WebViewSettings.HiddenPdfToolbarItems = CoreWebView2PdfToolbarItems.None;
    MessageBox.Show("Save button on PDF toolbar is enabled after the next navigation.");
}
else
{
    WebViewSettings.HiddenPdfToolbarItems = CoreWebView2PdfToolbarItems.Save;
    MessageBox.Show("Save button on PDF toolbar is disabled after the next navigation.");
}

Remarks

By default, it is @CoreWebView2PdfToolbarItems$.None and so it displays all of the items. Changes to this property apply to all CoreWebView2s in the same environment and using the same profile. Changes to this setting apply only after the next navigation.

Applies to