---
id: "P:cAlgo.API.WebView.DefaultBackgroundColor"
kind: "property"
type: "T:cAlgo.API.WebView"
url: "https://help.ctrader.com/ctrader-algo/references/Controls/WebView/DefaultBackgroundColor/"
---

> Documentation index for agents: https://help.ctrader.com/ctrader-algo/llms.txt · machine index: https://help.ctrader.com/ctrader-algo/api.json

# WebView.DefaultBackgroundColor

Member of [WebView](https://help.ctrader.com/ctrader-algo/references/Controls/WebView/index.md).

## DefaultBackgroundColor

Default background color of WebView.

Environments: Desktop supported · CLI not supported · Cloud not supported.

- CLI: Accepted without error but never displayed, so control events such as Click are never raised.
- Cloud: Accepted without error but never displayed, so control events such as Click are never raised.

C#:

```csharp
public Color DefaultBackgroundColor {get; set;}
```

Python:

```python
webView.DefaultBackgroundColor: Color
```

### Returns

`Color` — 

### Examples

C#:

```csharp
var webView = new WebView { DefaultBackgroundColor = Color.Black, Width = 400, Height = 300 };
webView.NavigateAsync("https://ctrader.com/");
Chart.AddControl(webView);
```

Python:

```python
webView = WebView()
webView.DefaultBackgroundColor = Color.Black
webView.Width = 400
webView.Height = 300
webView.NavigateAsync("https://ctrader.com/")
api.Chart.AddControl(webView)
```

