WebBrowserExtensionsShowDevToolsDocked(IChromiumWebBrowserBase, Control, String, DockStyle, Int32, Int32) Method |
Version 130.1.90
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.WinFormsAssembly: CefSharp.WinForms (in CefSharp.WinForms.dll) Version: 129.0.110.0 (129.0.110.0)
Syntax public static Control ShowDevToolsDocked(
this IChromiumWebBrowserBase chromiumWebBrowser,
Control parentControl,
string controlName = "ChromiumHostControlDevTools",
DockStyle dockStyle = DockStyle.Fill,
int inspectElementAtX = 0,
int inspectElementAtY = 0
)
public:
[ExtensionAttribute]
static Control^ ShowDevToolsDocked(
IChromiumWebBrowserBase^ chromiumWebBrowser,
Control^ parentControl,
String^ controlName = L"ChromiumHostControlDevTools",
DockStyle dockStyle = DockStyle::Fill,
int inspectElementAtX = 0,
int inspectElementAtY = 0
)
Parameters
- chromiumWebBrowser IChromiumWebBrowserBase
- ChromiumWebBrowser instance
- parentControl Control
- Control used as the parent for DevTools (a custom control will be added to the Controls collection)
- controlName String (Optional)
- Control name
- dockStyle DockStyle (Optional)
- Dock Style
- inspectElementAtX Int32 (Optional)
- x coordinate (used for inspectElement)
- inspectElementAtY Int32 (Optional)
- y coordinate (used for inspectElement)
Return Value
ControlReturns 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
IChromiumWebBrowserBase. 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