Skip to content

ChartDraggables.Count

property · ChartDraggables · cAlgo.API Since 5.2

DesktopCLICloud

Gets count of draggables.

Environment behaviour

CLI — not supported. Add returns a draggable that is never displayed; Remove sends nothing to any chart.

Cloud — not supported. Add returns a draggable that is never displayed; Remove sends nothing to any chart.

Definition

int Count {get;}
chartDraggables.Count: int

Returns int

Examples

Print("Draggables on the chart: {0}", Chart.Draggables.Count);
foreach (var draggable in Chart.Draggables)
    Print("Draggable {0} at {1}, {2}", draggable.Id, draggable.X, draggable.Y);
api.Print(f"Draggables on the chart: {api.Chart.Draggables.Count}")
for draggable in api.Chart.Draggables:
    api.Print(f"Draggable {draggable.Id} at {draggable.X}, {draggable.Y}")