Click or drag to resize

WebBrowserExtensionsShowDevToolsDocked Method (IWebBrowser, Control, String, DockStyle, Int32, Int32)

Version 94.4.20
Open DevTools using parentControl as the parent control. If inspectElementAtX and/or inspectElementAtY are specified then the element at the specified (x,y) location will be inspected. For resize/moving to work correctly you will need to use the LifeSpanHandler implementation. (Set LifeSpanHandler to an instance of LifeSpanHandler)

Namespace:  CefSharp.WinForms
Assembly:  CefSharp.WinForms (in CefSharp.WinForms.dll) Version: (
public static Control ShowDevToolsDocked(
	this IWebBrowser chromiumWebBrowser,
	Control parentControl,
	string controlName = "ChromiumHostControlDevTools",
	DockStyle dockStyle = DockStyle.Fill,
	int inspectElementAtX = 0,
	int inspectElementAtY = 0


Type: CefSharpIWebBrowser
ChromiumWebBrowser instance
Type: System.Windows.FormsControl
Control used as the parent for DevTools (a custom control will be added to the Controls collection)
controlName (Optional)
Type: SystemString

[Missing <param name="controlName"/> documentation for "M:CefSharp.WinForms.WebBrowserExtensions.ShowDevToolsDocked(CefSharp.IWebBrowser,System.Windows.Forms.Control,System.String,System.Windows.Forms.DockStyle,System.Int32,System.Int32)"]

dockStyle (Optional)
Type: System.Windows.FormsDockStyle

[Missing <param name="dockStyle"/> documentation for "M:CefSharp.WinForms.WebBrowserExtensions.ShowDevToolsDocked(CefSharp.IWebBrowser,System.Windows.Forms.Control,System.String,System.Windows.Forms.DockStyle,System.Int32,System.Int32)"]

inspectElementAtX (Optional)
Type: SystemInt32
x coordinate (used for inspectElement)
inspectElementAtY (Optional)
Type: SystemInt32
y coordinate (used for inspectElement)

Return Value

Type: Control
Returns the Control that hosts the DevTools instance if successful, otherwise returns null on error.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IWebBrowser. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also