Skip to content

ChartArea.MouseLeave

event · ChartArea · cAlgo.API

DesktopCLICloud

Occurs when the cursor leaves the chart area

Environment behaviour

CLI — not supported. Never raised: no chart is displayed, so there is nothing to interact with.

Cloud — not supported. Never raised: no chart is displayed, so there is nothing to interact with.

Definition

event Action<ChartMouseEventArgs> MouseLeave;
chartArea.MouseLeave += handler  # handler(obj: ChartMouseEventArgs)

Examples

protected override void OnStart()
{
    Chart.MouseLeave += OnChartMouseLeave;
}

private void OnChartMouseLeave(ChartMouseEventArgs args)
{
    Print("Mouse left the chart at {0}, {1}", args.MouseX, args.MouseY);
}
def on_start(self):
    api.Chart.MouseLeave += self.on_chart_mouse_leave

def on_chart_mouse_leave(self, args):
    api.Print(f"Mouse left the chart at {args.MouseX}, {args.MouseY}")