how to get the position of the active segment in Trados Studio Editor View

Hi,

I am trying to get the position of the active segment in Editor view in SDL Trados Studio 2015 in pixels on the screen using the API. Is there a way I can get this?

Peter