foo-webview-sdk
    Preparing search index...

    Interface WindowSetZoomForDpiParams

    Parameters for window.setZoomForDpi. Set the zoom factor of the calling window's WebView to dpi / 96; as with window.setZoom, the default zoom in the preferences no longer applies to it afterwards. Fails with NOT_FOUND when the calling window has no WebView of its own, and with OPERATION_FAILED when WebView2 refuses the factor; that failure carries the result fields.

    interface WindowSetZoomForDpiParams {
        dpi?: number;
    }
    Index
    dpi?: number

    DPI to match; 0 or less uses the window's DPI, or 96 when it is unknown.

    0