ChartContainersRemovedEventArgs
class cAlgo.API
DesktopCLICloud
Provides data for the containers removed event.
Environment behaviour
CLI — not supported. Available to plugins only, and plugins cannot run in the CLI.
Cloud — not supported. Available to plugins only, and plugins cannot run in the cloud.
Definition
public class ChartContainersRemovedEventArgs
Namespace: cAlgo.API · Group: EventArgs
Examples
protected override void OnStart()
{
ChartManager.ChartContainers.ContainersRemoved += OnChartContainersRemoved;
}
private void OnChartContainersRemoved(ChartContainersRemovedEventArgs args)
{
Print("{0} chart container(s) removed, remaining: {1}", args.RemovedChartContainers.Length, ChartManager.ChartContainers.Count);
}
def on_start(self):
api.ChartManager.ChartContainers.ContainersRemoved += self.on_chart_containers_removed
def on_chart_containers_removed(self, args):
api.Print(f"{len(args.RemovedChartContainers)} chart container(s) removed, remaining: {api.ChartManager.ChartContainers.Count}")
Properties
| Name | Description |
|---|---|
RemovedChartContainersDesktopCLICloudChartContainer[] | Returns the removed containers. |