Click or drag to resize

IBrowser Interface

Version 79.1.350
CefSharp interface for CefBrowser.

Namespace:  CefSharp
Assembly:  CefSharp (in CefSharp.dll) Version: 76.1.90.0 (76.1.90.0)
Syntax
public interface IBrowser : IDisposable

The IBrowser type exposes the following members.

Properties
  NameDescription
Public propertyCanGoBack
Returns true if the browser can navigate backwards.
Public propertyCanGoForward
Returns true if the browser can navigate forwards.
Public propertyFocusedFrame
Returns the focused frame for the browser window.
Public propertyHasDocument
Returns true if a document has been loaded in the browser.
Public propertyIdentifier
Returns the globally unique identifier for this browser.
Public propertyIsDisposed
Gets a value indicating whether the browser has been disposed of.
Public propertyIsLoading
Returns true if the browser is currently loading.
Public propertyIsPopup
Returns true if the window is a popup window.
Public propertyMainFrame
Returns the main (top-level) frame for the browser window.
Top
Methods
  NameDescription
Public methodCloseBrowser
Request that the browser close. The JavaScript 'onbeforeunload' event will be fired.
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable.)
Public methodGetFrame(Int64)
Returns the frame with the specified identifier, or NULL if not found.
Public methodGetFrame(String)
Returns the frame with the specified name, or NULL if not found.
Public methodGetFrameCount
Returns the number of frames that currently exist.
Public methodGetFrameIdentifiers
Returns the identifiers of all existing frames.
Public methodGetFrameNames
Returns the names of all existing frames.
Public methodGetHost
Returns the browser host object. This method can only be called in the browser process.
Public methodGoBack
Navigate backwards.
Public methodGoForward
Navigate forwards.
Public methodIsSame
Returns true if this object is pointing to the same handle as that object.
Public methodReload
Reload the current page.
Public methodStopLoad
Stop loading the page.
Top
Extension Methods
  NameDescription
Public Extension MethodAddWordToDictionary
Add the specified word to the spelling dictionary.
(Defined by WebBrowserExtensions.)
Public Extension MethodCloseDevTools
Explicitly close the developer tools window if one exists for this browser instance.
(Defined by WebBrowserExtensions.)
Public Extension MethodFind
Search for text within the current page.
(Defined by WebBrowserExtensions.)
Public Extension MethodGetZoomLevelAsync
Asynchronously gets the current Zoom Level.
(Defined by WebBrowserExtensions.)
Public Extension MethodPrint
Opens a Print Dialog which if used (can be user cancelled) will print the browser contents.
(Defined by WebBrowserExtensions.)
Public Extension MethodPrintToPdfAsync
Asynchronously prints the current browser contents to the PDF file specified. The caller is responsible for deleting the file when done.
(Defined by WebBrowserExtensions.)
Public Extension MethodReplaceMisspelling
If a misspelled word is currently selected in an editable node calling this method will replace it with the specified word.
(Defined by WebBrowserExtensions.)
Public Extension MethodSendMouseWheelEvent
Send a mouse wheel event to the browser.
(Defined by WebBrowserExtensions.)
Public Extension MethodSetZoomLevel
Change the ZoomLevel to the specified value. Can be set to 0.0 to clear the zoom level.
(Defined by WebBrowserExtensions.)
Public Extension MethodShowDevTools
Open developer tools in its own window.
(Defined by WebBrowserExtensions.)
Public Extension MethodStopFinding
Cancel all searches that are currently going on.
(Defined by WebBrowserExtensions.)
Top
See Also