Partager via


CoreWebView2Controller.RasterizationScale Property

Definition

Gets or sets the WebView rasterization scale.

public double RasterizationScale { get; set; }
member this.RasterizationScale : double with get, set
Public Property RasterizationScale As Double

Property Value

Remarks

The rasterization scale is the combination of the monitor DPI scale and text scaling set by the user. This value should be updated when the DPI scale of the app's top level window changes (i.e. monitor DPI scale changes or the window changes monitor) or when the text scale factor of the system changes. Rasterization scale applies to the WebView content, as well as popups, context menus, scroll bars, and so on. Normal app scaling scenarios should use the ZoomFactor property or SetBoundsAndZoomFactor(Rectangle, Double) method.

Applies to