ChartArea.RemoveControl
method · ChartArea · cAlgo.API
DesktopCLICloud
Remove a chart control from the chart area.
Environment behaviour
CLI — not supported. Has no visible effect: the CLI displays no chart, so no control was ever shown.
Cloud — not supported. Has no visible effect: the cloud displays no chart, so no control was ever shown.
Definition
void RemoveControl(ControlBase control)
chartArea.RemoveControl(control: ControlBase) -> None
Parameters
| Name | C# type | Python type | Description |
|---|---|---|---|
control | ControlBase | ControlBase | An existing control that will be removed |
Examples
var textBlock = new TextBlock { Text = "Loading...", HorizontalAlignment = HorizontalAlignment.Center, VerticalAlignment = VerticalAlignment.Center };
Chart.AddControl(textBlock);
Chart.RemoveControl(textBlock);
Print("Loading message removed");
textBlock = TextBlock()
textBlock.Text = "Loading..."
api.Chart.AddControl(textBlock)
api.Chart.RemoveControl(textBlock)
api.Print("Loading message removed")