Click or drag to resize

IBrowserSettingsPreferredColorScheme Property

Gets or sets the preferred color scheme for the web content in the browser.

Namespace:  DotNetBrowser.Browser
Assembly:  DotNetBrowser (in DotNetBrowser.dll) Version: 2.23.2
Syntax
C#
PreferredColorScheme PreferredColorScheme { get; set; }

Property Value

Type: PreferredColorScheme
The preferred color scheme value.
Exceptions
ExceptionCondition
ObjectDisposedExceptionThe IBrowserSettings has already been disposed.
ConnectionClosedExceptionThe connection to the Chromium engine is closed.
Remarks
The scheme is used to evaluate the prefers-color-scheme media query and resolve UA color scheme to be used based on the supported-color-schemes META tag and CSS property.
See Also