Skip to content

Border.BackgroundColor

property · Border · cAlgo.API

DesktopCLICloud

Gets or sets the color of the border background. Check the Color class for the ARGB (alpha, red, green, blue) color values, or use the strings Color.Red, Color.FromName("Red"), Color.FromArgb(255, 0, 0), Color.FromHex("#ff0000"), "Red", "#ff0000".

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;}
border.BackgroundColor: Color

Returns Color

Examples

var border = new Border { BackgroundColor = Color.FromArgb(120, 0, 0, 0), Padding = 5 };
border.Child = new TextBlock { Text = SymbolName, ForegroundColor = Color.White };
Chart.AddControl(border);
border = Border()
border.BackgroundColor = Color.FromArgb(120, 0, 0, 0)
border.Padding = Thickness(5)
textBlock = TextBlock()
textBlock.Text = api.SymbolName
textBlock.ForegroundColor = Color.White
border.Child = textBlock
api.Chart.AddControl(border)