Skip to content

pbAreDevToolsEnabled - cWebView2Browser

Controls whether the browser will allow the developer tools to be opened using the default methods

Type: Property
Access: Read/Write
Data Type: Boolean
Parameters: None

Syntax

Property Boolean pbAreDevToolsEnabled
Access Type Syntax
Read Access: Get pbAreDevToolsEnabled to BooleanVariable
Write Access: Set pbAreDevToolsEnabled to BooleanVariable/Value

Description

Controls whether the browser will allow the developer tools to be opened using the default methods (via the context menu > inspect element or the F12 accelerator key).

Note that this will not prevent OpenDevToolsWindow from opening the developer tools.

Note that changes to this property at runtime are only applied after the next page load.

Default: True