Skip to content

Control.BackgroundColor

property · Control · cAlgo.API

DesktopCLICloud

Gets or sets the color of the chart control background.

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 BackgroundColor {get; set;}
control.BackgroundColor: Color

Returns Color

Examples

var buyButton = new Button { Text = "Buy", BackgroundColor = Color.DarkGreen, ForegroundColor = Color.White };
Chart.AddControl(buyButton);
buyButton = Button()
buyButton.Text = "Buy"
buyButton.BackgroundColor = Color.DarkGreen
buyButton.ForegroundColor = Color.White
api.Chart.AddControl(buyButton)