Table of Contents
- Getting Started
- EO.Pdf
- EO.Web
- EO.WebBrowser
- EO.Wpf
- Common Topics
- Reference
- .NET API Reference
- EO.Base
- EO.Base.UI
- EO.Extensions
- EO.Pdf
- EO.Pdf.Acm
- EO.Pdf.Contents
- EO.Pdf.Drawing
- EO.Pdf.Mvc
- EO.Web
- EO.WebBrowser
- EO.WebBrowser
- Classes
- AfterPrintEventArgs Class
- BeforeContextMenuEventArgs Class
- BeforeDownloadEventArgs Class
- BeforeNavigateEventArgs Class
- BeforePrintEventArgs Class
- BeforeRequestLoadEventArgs Class
- BrowserObject Class
- CertificateErrorEventArgs Class
- CommandEventArgs Class
- CommandIds Class
- ConsoleMessageEventArgs Class
- ContextMenu Class
- ContextMenuInfo Class
- DOMNodeEventArgs Class
- DOMNodeInfo Class
- DownloadEventArgs Class
- DownloadItem Class
- DownloadResult Class
- FileDialogEventArgs Class
- FindSession Class
- Frame Class
- FrameEventArgs Class
- FullscreenModeChangedArgs Class
- GiveFocusEventArgs Class
- JSDialogEventArgs Class
- JSException Class
- JSExtInvokeArgs Class
- JSFunction Class
- JSInvokeException Class
- JSNull Class
- JSObject Class
- JSRealObject Class
- JSUndefined Class
- LaunchUrlEventArgs Class
- LoadCompletedEventArgs Class
- LoadFailedEventArgs Class
- MenuItem Class
- MenuItemCollection Class
- NavigationTask Class
- NeedClientCertificateEventArgs Class
- NeedCredentialsEventArgs Class
- NewWindowEventArgs Class
- PostDataCollection Class
- PostDataItem Class
- PreloadTask Class
- RawBitmapData Class
- RenderUnresponsiveEventArgs Class
- Request Class
- RequestCanceledException Class
- RequestEventArgs Class
- RequestPermissionEventArgs Class
- ResourceHandler Class
- ResourceHandlerContext Class
- Response Class
- ResponseEventArgs Class
- Runtime Class
- ScriptTask Class
- ScriptTaskDoneEventArgs Class
- Shortcut Class
- ShouldForceDownloadEventArgs Class
- SSLStatus Class
- ThreadRunner Class
- WebView Class
- WebView Class
- WebView Members
- WebView Constructor
- Properties
- Methods
- Methods
- Capture Method
- CaptureRaw Method
- Close Method
- CloseDebugUI Method
- Create Method
- Destroy Method
- DoEvents Method
- Download Method
- DownloadWithResult Method
- EvalScript Method
- ExecCommand Method
- ExitFullscreenMode Method
- GetContentAreaSize Method
- GetDefaultPrinterSettings Method
- GetDOMWindow Method
- GetHtml Method
- GetPageSize Method
- GetScrollOffset Method
- GetSource Method
- GetSSLStatus Method
- GetText Method
- GoBack Method
- GoForward Method
- HideDevTools Method
- InvokeFunction Method
- LoadHtml Method
- LoadHtmlAndWait Method
- LoadRequest Method
- LoadRequestAndWait Method
- LoadUrl Method
- LoadUrlAndWait Method
- Preload Method
- Print Method
- QueueScriptTask Method
- RegisterJSExtensionFunction Method
- RegisterResourceHandler Method
- Reload Method
- Resize Method
- RunLater Method
- SendChar Method
- SendKeyEvent Method
- SendMouseEvent Method
- SetFocus Method
- SetOptions Method
- SetScrollOffset Method
- ShowDebugUI Method
- ShowDevTools Method
- StartFindSession Method
- StopLoad Method
- UnregisterResourceHandler Method
- Events
- WebViewClosedEventArgs Class
- WebViewClosingEventArgs Class
- WebViewTask Class
- Interfaces
- Enumerations
- Delegates
- EO.WebBrowser.DOM
- EO.WebEngine
- EO.WinForm
- EO.Wpf
- EO.Wpf.Gauge
- EO.Wpf.Gauge.Shapes
- EO.Wpf.Primitives
- EO.Wpf.Themes.Aero
- EO.Wpf.Themes.Classic
- EO.Wpf.Themes.Luna
- EO.Wpf.Themes.Metro
- EO.Wpf.Themes.Royale
- JavaScript API Reference
- .NET API Reference
WebView.Close Method |
Closes this WebView.
Syntax
Parameters
- force
- Set to true to force close.
Remarks
The following sequence of events happens after Close is called:
- The current page's onbeforeunload handler is called. If this handler returns a string, then event JSDialog is fired with DialogType set to JSDialogType.BeforeUnload;
- Inside the handler, you may display your custom message box and call JSDialogEventArgs.OK to proceed closing this WebView, or JSDialogEventArgs.Cancel to cancel the operation. If you do not call either, the default unload message box is displayed;
- If closing is confirmed in the step above, the WebView is destroyed and Closed event is fired;
See Also