BrowserSettings Class |
Namespace: CefSharp
The BrowserSettings type exposes the following members.
Name | Description | |
---|---|---|
BrowserSettings |
Default Constructor
|
Name | Description | |
---|---|---|
AcceptLanguageList |
Comma delimited ordered list of language codes without any whitespace that
will be used in the "Accept-Language" HTTP header. May be overridden on a
per-browser basis using the CefBrowserSettings.AcceptLanguageList value.
If both values are empty then "en-US,en" will be used. Can be overridden
for individual RequestContext instances via the
RequestContextSettings.AcceptLanguageList value.
| |
ApplicationCache |
Controls whether the application cache can be used. Also configurable using
the "disable-application-cache" command-line switch.
| |
BackgroundColor |
Background color used for the browser before a document is loaded and when no document color
is specified. The alpha component must be either fully opaque (0xFF) or fully transparent (0x00).
If the alpha component is fully opaque then the RGB components will be used as the background
color. If the alpha component is fully transparent for a WinForms browser then the
CefSettings.BackgroundColor value will be used. If the alpha component is fully transparent
for a windowless (WPF/OffScreen) browser then transparent painting will be enabled.
| |
CursiveFontFamily |
CursiveFontFamily
| |
Databases |
Controls whether databases can be used. Also configurable using the
"disable-databases" command-line switch.
| |
DefaultEncoding |
Default encoding for Web content. If empty "ISO-8859-1" will be used. Also
configurable using the "default-encoding" command-line switch.
| |
DefaultFixedFontSize |
DefaultFixedFontSize
| |
DefaultFontSize |
DefaultFontSize
| |
FantasyFontFamily |
FantasyFontFamily
| |
FileAccessFromFileUrls |
Controls whether file URLs will have access to other file URLs. Also
configurable using the "allow-access-from-files" command-line switch.
| |
FixedFontFamily |
FixedFontFamily
| |
ImageLoading |
Controls whether image URLs will be loaded from the network. A cached image
will still be rendered if requested. Also configurable using the
"disable-image-loading" command-line switch.
| |
ImageShrinkStandaloneToFit |
Controls whether standalone images will be shrunk to fit the page. Also
configurable using the "image-shrink-standalone-to-fit" command-line
switch.
| |
Javascript |
Controls whether JavaScript can be executed.
(Disable javascript)
| |
JavascriptAccessClipboard |
Controls whether JavaScript can access the clipboard. Also configurable
using the "disable-javascript-access-clipboard" command-line switch.
| |
JavascriptCloseWindows |
Controls whether JavaScript can be used to close windows that were not
opened via JavaScript. JavaScript can still be used to close windows that
were opened via JavaScript. Also configurable using the
"disable-javascript-close-windows" command-line switch.
| |
JavascriptDomPaste |
Controls whether DOM pasting is supported in the editor via
execCommand("paste"). The |javascript_access_clipboard| setting must also
be enabled. Also configurable using the "disable-javascript-dom-paste"
command-line switch.
| |
LocalStorage |
Controls whether local storage can be used. Also configurable using the
"disable-local-storage" command-line switch.
| |
MinimumFontSize |
MinimumFontSize
| |
MinimumLogicalFontSize |
MinimumLogicalFontSize
| |
Plugins |
Controls whether any plugins will be loaded. Also configurable using the
"disable-plugins" command-line switch.
| |
RemoteFonts |
Controls the loading of fonts from remote sources. Also configurable using
the "disable-remote-fonts" command-line switch.
| |
SansSerifFontFamily |
SansSerifFontFamily
| |
SerifFontFamily |
SerifFontFamily
| |
StandardFontFamily |
StandardFontFamily
| |
TabToLinks |
Controls whether the tab key can advance focus to links. Also configurable
using the "disable-tab-to-links" command-line switch.
| |
TextAreaResize |
Controls whether text areas can be resized. Also configurable using the
"disable-text-area-resize" command-line switch.
| |
UniversalAccessFromFileUrls |
Controls whether file URLs will have access to all URLs. Also configurable
using the "allow-universal-access-from-files" command-line switch.
| |
WebGl |
Controls whether WebGL can be used. Note that WebGL requires hardware
support and may not work on all systems even when enabled. Also
configurable using the "disable-webgl" command-line switch.
| |
WebSecurity |
Controls whether web security restrictions (same-origin policy) will be
enforced. Disabling this setting is not recommend as it will allow risky
security behavior such as cross-site scripting (XSS). Also configurable
using the "disable-web-security" command-line switch.
| |
WindowlessFrameRate |
The maximum rate in frames per second (fps) that CefRenderHandler::OnPaint
will be called for a windowless browser. The actual fps may be lower if
the browser cannot generate frames at the requested rate. The minimum
value is 1 and the maximum value is 60 (default 30). This value can also be
changed dynamically via IBrowserHost.SetWindowlessFrameRate.
|
Name | Description | |
---|---|---|
Dispose | Releases all resources used by the BrowserSettings | |
Dispose(Boolean) | Releases the unmanaged resources used by the BrowserSettings and optionally releases the managed resources | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | (Overrides ObjectFinalize.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |