ChartObjectsSelectionChangedEventArgs.ObjectsRemovedFromSelection
property · ChartObjectsSelectionChangedEventArgs · cAlgo.API
DesktopCLICloud
A list of objects that were removed from selection
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 IReadonlyList<ChartObject> ObjectsRemovedFromSelection {get;}
chartObjectsSelectionChangedEventArgs.ObjectsRemovedFromSelection: IReadonlyList[ChartObject]
Returns IReadonlyList<ChartObject>
Examples
protected override void OnStart()
{
Chart.ObjectsSelectionChanged += OnChartObjectsSelectionChanged;
}
private void OnChartObjectsSelectionChanged(ChartObjectsSelectionChangedEventArgs args)
{
foreach (var chartObject in args.ObjectsRemovedFromSelection)
Print("Deselected: {0} ({1})", chartObject.Name, chartObject.ObjectType);
}
def on_start(self):
api.Chart.ObjectsSelectionChanged += self.on_chart_objects_selection_changed
def on_chart_objects_selection_changed(self, args):
for chartObject in args.ObjectsRemovedFromSelection:
api.Print(f"Deselected: {chartObject.Name} ({chartObject.ObjectType})")