Skip to content

WebView.DefaultBackgroundColor

property · WebView · cAlgo.API

DesktopCLICloud

Default background color of WebView.

Environment behaviour

CLI — not supported. Accepted without error but never displayed, so control events such as Click are never raised.

Cloud — not supported. Accepted without error but never displayed, so control events such as Click are never raised.

Definition

public Color DefaultBackgroundColor {get; set;}
webView.DefaultBackgroundColor: Color

Returns Color

Examples

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