CheckBox.Content
property · CheckBox · cAlgo.API
DesktopCLICloud
Gets or sets the content.
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 ControlBase Content {get; set;}
checkBox.Content: ControlBase
Returns ControlBase
Examples
var label = new TextBlock { Text = "Risk 1%", ForegroundColor = Color.Orange, FontWeight = FontWeight.Bold };
var checkBox = new CheckBox { Content = label };
Chart.AddControl(checkBox);
label = TextBlock()
label.Text = "Risk 1%"
label.ForegroundColor = Color.Orange
label.FontWeight = FontWeight.Bold
checkBox = CheckBox()
checkBox.Content = label
api.Chart.AddControl(checkBox)