Skip to content

ChartObjectsMoveStartedEventArgs

class cAlgo.API Since 5.2

DesktopCLICloud

Provides data for the chart objects move started event.

Environment behaviour

CLI — not supported. Never raised in the CLI: the events that pass it never fire there (ChartArea.ObjectsMoveStarted).

Cloud — not supported. Never raised in the cloud: the events that pass it never fire there (ChartArea.ObjectsMoveStarted).

Definition

public class ChartObjectsMoveStartedEventArgs : ChartObjectsEventArgs

Namespace: cAlgo.API · Group: EventArgs · Inherits: ChartObjectsEventArgs

Examples

protected override void OnStart()
{
    Chart.ObjectsMoveStarted += OnChartObjectsMoveStarted;
}

private void OnChartObjectsMoveStarted(ChartObjectsMoveStartedEventArgs args)
{
    foreach (var chartObject in args.ChartObjects)
        Print("Started moving {0} ({1})", chartObject.Name, chartObject.ObjectType);
}
def on_start(self):
    api.Chart.ObjectsMoveStarted += self.on_chart_objects_move_started

def on_chart_objects_move_started(self, args):
    for chartObject in args.ChartObjects:
        api.Print(f"Started moving {chartObject.Name} ({chartObject.ObjectType})")

Inherited members

From ChartObjectsEventArgs: Chart, Area, ChartObjects

See also