You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* The minimum base OS is the same as [.NET 6](https://github.com/dotnet/core/blob/main/release-notes/6.0/supported-os.md) / [.NET 8](https://github.com/dotnet/core/blob/main/release-notes/8.0/supported-os.md).
32
+
* .NET 8/10 or later.
33
+
* The minimum base OS is the same as [.NET 8](https://github.com/dotnet/core/blob/main/release-notes/8.0/supported-os.md) / [.NET 10](https://github.com/dotnet/core/blob/main/release-notes/10.0/supported-os.md).
33
34
* Node.JS using at least [Version 22.x](https://nodejs.org).
34
35
35
36
## 👩🏫 Usage with ASP.NET
@@ -202,6 +203,8 @@ Alternatively, consider using a GitHub sponsorship for the core maintainers:
Injects CSS into the current web page and returns a unique key for the inserted style sheet.
63
+
64
+
**Parameters:**
65
+
-`css` - The style sheet to inject
66
+
-`cssOrigin` - Can be either `user` or `author`, defaults to `author`
67
+
68
+
**Returns:**
69
+
70
+
The key of the inserted style sheet, to be used with `RemoveInsertedCSSAsync`.
71
+
72
+
#### 🧊 `Task RemoveInsertedCSSAsync(string key)`
73
+
Removes a previously inserted style sheet from the current web page.
74
+
75
+
**Parameters:**
76
+
-`key` - The key returned by `InsertCSSAsync`
77
+
61
78
#### 🧊 `Task LoadURLAsync(string url)`
62
79
Loads the url in the window. The url must contain the protocol prefix.
63
80
@@ -113,6 +130,106 @@ Prints window's web page as PDF with Chromium's preview printing custom settings
113
130
114
131
Whether the PDF generation succeeded.
115
132
133
+
#### 🧊 `Task<double> GetZoomFactorAsync()`
134
+
Returns the current zoom factor. A factor of `1.0` means 100%.
135
+
136
+
#### 🧊 `void SetZoomFactor(double factor)`
137
+
Changes the zoom factor to the specified factor. The zoom factor is the zoom percent divided by 100, so 300% = `3.0`. The factor must be greater than `0.0`.
138
+
139
+
**Parameters:**
140
+
-`factor` - The zoom factor
141
+
142
+
#### 🧊 `Task<double> GetZoomLevelAsync()`
143
+
Returns the current zoom level.
144
+
145
+
#### 🧊 `void SetZoomLevel(double level)`
146
+
Changes the zoom level to the specified level. The original size is `0` and each increment above or below represents zooming 20% larger or smaller to default limits of 300% and 50% of the original size, respectively.
> **Note:** The zoom factor is shared by all windows using the same session partition. Assign a unique `WebPreferences.Partition` per window if each window should keep its own zoom.
0 commit comments