IBrowserHost Methods |
The IBrowserHost type exposes the following members.
Name | Description | |
---|---|---|
AddWordToDictionary |
Add the specified word to the spelling dictionary.
| |
CloseBrowser |
Request that the browser close. The JavaScript 'onbeforeunload' event will be fired.
| |
CloseDevTools |
Explicitly close the developer tools window if one exists for this browser instance.
| |
Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from IDisposable.) | |
DragSourceEndedAt |
Call this method when the drag operation started by a [!:IRenderWebBrowser.StartDragging] call has ended either in a drop or by being cancelled.
If the web view is both the drag source and the drag target then all DragTarget* methods should be called before DragSource* methods.
This method is only used when window rendering is disabled.
| |
DragSourceSystemDragEnded |
Call this method when the drag operation started by a [!:IRenderWebBrowser.StartDragging] call has completed.
This method may be called immediately without first calling DragSourceEndedAt to cancel a drag operation.
If the web view is both the drag source and the drag target then all DragTarget* methods should be called before DragSource* mthods.
This method is only used when window rendering is disabled.
| |
DragTargetDragDrop |
Call this method when the user completes the drag operation by dropping the object onto the web view (after calling DragTargetDragEnter(IDragData, MouseEvent, DragOperationsMask)).
The object being dropped is IDragData, given as an argument to the previous DragTargetDragEnter(IDragData, MouseEvent, DragOperationsMask) call.
This method is only used when window rendering is disabled.
| |
DragTargetDragEnter |
Call this method when the user drags the mouse into the web view (before calling DragTargetDragOver(MouseEvent, DragOperationsMask)/DragTargetDragLeave/DragTargetDragDrop(MouseEvent)).
| |
DragTargetDragLeave |
Call this method when the user drags the mouse out of the web view (after calling DragTargetDragEnter(IDragData, MouseEvent, DragOperationsMask)).
This method is only used when window rendering is disabled.
| |
DragTargetDragOver |
Call this method each time the mouse is moved across the web view during a drag operation (after calling DragTargetDragEnter(IDragData, MouseEvent, DragOperationsMask) and before calling DragTargetDragLeave/DragTargetDragDrop(MouseEvent)).
This method is only used when window rendering is disabled.
| |
Find |
Search for text
| |
GetNavigationEntries |
Retrieve a snapshot of current navigation entries as values sent to the
specified visitor.
| |
GetOpenerWindowHandle |
Retrieve the window handle of the browser that opened this browser.
| |
GetWindowHandle |
Retrieve the window handle for this browser.
| |
GetZoomLevelAsync |
Get the current zoom level. The default zoom level is 0.0. This method can only be called on the CEF UI thread.
| |
Invalidate |
Invalidate the view. The browser will call CefRenderHandler::OnPaint asynchronously.
This method is only used when window rendering is disabled (OSR).
| |
NotifyMoveOrResizeStarted |
Notify the browser that the window hosting it is about to be moved or resized.
| |
NotifyScreenInfoChanged |
Send a notification to the browser that the screen info has changed.
The browser will then call CefRenderHandler::GetScreenInfo to update the screen information with the new values.
This simulates moving the webview window from one display to another, or changing the properties of the current display.
This method is only used when window rendering is disabled.
| |
Print the current browser contents.
| ||
PrintToPdf |
Asynchronously prints the current browser contents to the Pdf file specified.
The caller is responsible for deleting the file when done.
| |
PrintToPdfAsync |
Asynchronously prints the current browser contents to the Pdf file specified.
The caller is responsible for deleting the file when done.
| |
ReplaceMisspelling |
If a misspelled word is currently selected in an editable node calling this method will replace it with the specified word.
| |
SendCaptureLostEvent |
Send a capture lost event to the browser.
| |
SendFocusEvent |
Send a focus event to the browser. . (Used for OSR Rendering e.g. WPF or OffScreen)
| |
SendKeyEvent(KeyEvent) |
Send a key event to the browser.
| |
SendKeyEvent(Int32, Int32, Int32) |
Send key event to browser based on operating system message
| |
SendMouseClickEvent |
Send a mouse click event to the browser.
| |
SendMouseMoveEvent |
Send a mouse move event to the browser
| |
SendMouseWheelEvent |
Send a mouse wheel event to the browser.
| |
SetFocus |
Set whether the browser is focused. (Used for Normal Rendering e.g. WinForms)
| |
SetZoomLevel |
Change the zoom level to the specified value. Specify 0.0 to reset the zoom level.
If called on the CEF UI thread the change will be applied immediately.
Otherwise, the change will be applied asynchronously on the UI thread.
| |
ShowDevTools |
Open developer tools in its own window. If inspectElementAtX and/or inspectElementAtY are specified then
the element at the specified (x,y) location will be inspected.
| |
StartDownload |
Download the file at url using IDownloadHandler.
| |
StopFinding |
Cancel all searches that are currently going on.
| |
WasHidden |
Notify the browser that it has been hidden or shown.
Layouting and rendering notification will stop when the browser is hidden.
This method is only used when window rendering is disabled (WPF/OffScreen).
| |
WasResized |
Notify the browser that the widget has been resized.
The browser will first call CefRenderHandler::GetViewRect to get the new size and then call CefRenderHandler::OnPaint asynchronously with the updated regions.
This method is only used when window rendering is disabled.
|