Table of Contents

Property TransparentBackgroundEnabled

Namespace
DotNetBrowser.Browser
Assembly
DotNetBrowser.dll

TransparentBackgroundEnabled

Enables or disables transparent background on the web pages.By default, the background is always opaque.

bool TransparentBackgroundEnabled { get; set; }

Property Value

bool

true if transparent background is enabled, false otherwise.

Remarks

This property supports only the OffScreen rendering mode on Windows and Linux, and the both rendering modes on macOS.

The attempt to set this property to true in the unsupported rendering mode will result in an exception.

Exceptions

ObjectDisposedException

The IBrowserSettings has already been disposed.

ConnectionClosedException

The connection to the Chromium engine is closed.