Click or drag to resize

BrowserSettings Class

Version 108.4.130
Interface representing browser initialization settings.
Inheritance Hierarchy
SystemObject
  CefSharpBrowserSettings

Namespace:  CefSharp
Assembly:  CefSharp.Core (in CefSharp.Core.dll) Version: 108.4.130.0
Syntax
public class BrowserSettings : IBrowserSettings, 
	IDisposable

The BrowserSettings type exposes the following members.

Constructors
  NameDescription
Public methodBrowserSettings
Initializes a new instance of the BrowserSettings class
Top
Properties
  NameDescription
Public propertyAcceptLanguageList
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.
Public propertyAutoDispose
Gets a value indicating if the browser settings instance was created internally by CefSharp. Instances created by CefSharp will be Disposed of after use. To control the lifespan yourself create an set BrowserSettings yourself.
Public propertyBackgroundColor
Opaque background color used for the browser before a document is loaded and when no document color is specified. By default the background color will be the same as CefSettings.BackgroundColor. Only the RGB compontents of the specified value will be used. The alpha component must greater than 0 to enable use of the background color but will be otherwise ignored.
Public propertyCursiveFontFamily
CursiveFontFamily
Public propertyDatabases
Controls whether databases can be used. Also configurable using the "disable-databases" command-line switch.
Public propertyDefaultEncoding
Default encoding for Web content. If empty "ISO-8859-1" will be used. Also configurable using the "default-encoding" command-line switch.
Public propertyDefaultFixedFontSize
DefaultFixedFontSize
Public propertyDefaultFontSize
DefaultFontSize
Public propertyFantasyFontFamily
FantasyFontFamily
Public propertyFixedFontFamily
FixedFontFamily
Public propertyImageLoading
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.
Public propertyImageShrinkStandaloneToFit
Controls whether standalone images will be shrunk to fit the page. Also configurable using the "image-shrink-standalone-to-fit" command-line switch.
Public propertyIsDisposed
Gets a value indicating if the browser settings has been disposed.
Public propertyJavascript
Controls whether JavaScript can be executed. (Used to Enable/Disable javascript) Also configurable using the "disable-javascript" command-line switch.
Public propertyJavascriptAccessClipboard
Controls whether JavaScript can access the clipboard. Also configurable using the "disable-javascript-access-clipboard" command-line switch.
Public propertyJavascriptCloseWindows
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.
Public propertyJavascriptDomPaste
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.
Public propertyLocalStorage
Controls whether local storage can be used. Also configurable using the "disable-local-storage" command-line switch.
Public propertyMinimumFontSize
MinimumFontSize
Public propertyMinimumLogicalFontSize
MinimumLogicalFontSize
Public propertyRemoteFonts
Controls the loading of fonts from remote sources. Also configurable using the "disable-remote-fonts" command-line switch.
Public propertySansSerifFontFamily
SansSerifFontFamily
Public propertySerifFontFamily
SerifFontFamily
Public propertyStandardFontFamily
StandardFontFamily
Public propertyTabToLinks
Controls whether the tab key can advance focus to links. Also configurable using the "disable-tab-to-links" command-line switch.
Public propertyTextAreaResize
Controls whether text areas can be resized. Also configurable using the "disable-text-area-resize" command-line switch.
Public propertyWebGl
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.
Public propertyWindowlessFrameRate
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.
Top
Methods
  NameDescription
Public methodStatic memberCreate
Create a new instance of IBrowserSettings
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUnWrap
Used internally to get the underlying IBrowserSettings instance. Unlikely you'll use this yourself.
Top
See Also