ChartContainersAddedEventArgs.AddedChartContainers
property · ChartContainersAddedEventArgs · cAlgo.API
DesktopCLICloud
Returns the added containers.
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 ChartContainer[] AddedChartContainers {get;}
chartContainersAddedEventArgs.AddedChartContainers: list[ChartContainer]
Returns ChartContainer[]
Examples
protected override void OnStart()
{
ChartManager.ChartContainers.ContainersAdded += OnChartContainersAdded;
}
private void OnChartContainersAdded(ChartContainersAddedEventArgs args)
{
foreach (var container in args.AddedChartContainers)
Print("Container {0} added, mode: {1}, frames: {2}", container.Id, container.Mode, container.Count);
}
def on_start(self):
api.ChartManager.ChartContainers.ContainersAdded += self.on_chart_containers_added
def on_chart_containers_added(self, args):
for container in args.AddedChartContainers:
api.Print(f"Container {container.Id} added, mode: {container.Mode}, frames: {container.Count}")