Border.BorderColor
property · Border · cAlgo.API
DesktopCLICloud
Gets or sets the border line color. 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 BorderColor {get; set;}
border.BorderColor: Color
Returns Color
Examples
var border = new Border { BorderThickness = 2, Width = 150, Height = 40 };
border.BorderColor = Account.Equity >= Account.Balance ? Color.Green : Color.Red;
Chart.AddControl(border);
border = Border()
border.BorderThickness = Thickness(2)
border.Width = 150
border.Height = 40
border.BorderColor = Color.Green if api.Account.Equity >= api.Account.Balance else Color.Red
api.Chart.AddControl(border)