CoreWebView2ControllerOptions Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Used to manage profile options that are created by CreateCoreWebView2ControllerOptions().
public class CoreWebView2ControllerOptions
type CoreWebView2ControllerOptions = class
Public Class CoreWebView2ControllerOptions
- Inheritance
-
CoreWebView2ControllerOptions
Properties
| Name | Description |
|---|---|
| AllowHostInputProcessing |
|
| DefaultBackgroundColor |
This property allows users to initialize the The DefaultBackgroundColor can be set via the WEBVIEW2_DEFAULT_BACKGROUND_COLOR environment variable, which will remain supported for cases where this solution is being used. It is encouraged to transition away from the environment variable and use this API solution to apply the property. It is important to highlight that when set, the environment variable overrides DefaultBackgroundColor and becomes the initial value of DefaultBackgroundColor. The This API only supports opaque colors and full transparency. It will fail for colors with alpha values that don't equal 0 or 255. When WebView2 is set to be fully transparent, it does not render a background, allowing the content from windows behind it to be visible. |
| IsInPrivateModeEnabled |
Manage the controller's InPrivate mode. |
| LocaleRegion |
Manages the value of the controller's locale region. |
| ProfileName |
Manage the name of the controller's profile. |
| ScriptLocale |
Manages the value of the controller's script locale. |