Find on which screen a window is displayed

Hello,

var screens = Configuration.Instance.GetItemsByKind(Kind.Screen);
var windows = Configuration.Instance.GetItemsByKind(Kind.Window);

How do I find out which window belongs to which screen?

The goal is to be able to MultiWindowCommand.CloseSelectedWindow the windows belonging to screen X (instead of closing all windows and reopening them all like I have to do at the moment).

https://developer.milestonesys.com/s/question/0D53X00007fKDu7SAG/get-imagevieweraddon-monitor-and-position - seems to be the same question, I hope you can use it..

@Bo Ellegård Andersen (Milestone Systems)​ thanks, I’ll investigate and come back to you if needed.