ChartObjectsSelectionChangedEventArgs.Area
property · ChartObjectsSelectionChangedEventArgs · cAlgo.API
DesktopCLICloud
A chart area where event occured
Environment behaviour
CLI — not supported. Never raised in the CLI: the events that pass it never fire there (ChartArea.ObjectsSelectionChanged).
Cloud — not supported. Never raised in the cloud: the events that pass it never fire there (ChartArea.ObjectsSelectionChanged).
Definition
public ChartArea Area {get;}
chartObjectsSelectionChangedEventArgs.Area: ChartArea
Returns ChartArea
Examples
protected override void OnStart()
{
Chart.ObjectsSelectionChanged += OnChartObjectsSelectionChanged;
}
private void OnChartObjectsSelectionChanged(ChartObjectsSelectionChangedEventArgs args)
{
Print("Selection changed in an area with {0} objects", args.Area.Objects.Count);
}
def on_start(self):
api.Chart.ObjectsSelectionChanged += self.on_chart_objects_selection_changed
def on_chart_objects_selection_changed(self, args):
api.Print(f"Selection changed in an area with {args.Area.Objects.Count} objects")