DeviceToView Equivalent

What is the Equivalent of 4.x's View.DeviceToView(pt) in 5.1 DOM?

In the DragDrop event of the Draw Area I need to place an object at the translated X,Y coordinates. I used to use View.DeviceToView() to accomplish this.






1 Reply

RR Ramya R Syncfusion Team May 25, 2007 03:18 PM UTC

Hi Eric,

Thank you for your interest in Syncfusion Products.

Some of the co-ordinate conversion present with our Diagram Control are as shown in the code snippet below,

//Converts Model co-ordinates to Client co-ordinates
1)this.diagram1.Controller.ConvertFromModelToClientCoordinates(RectangleF rect);(5 Overloads are present for this method).

//Converts Client co-ordinates to Model co-ordinates 2)this.diagram1.Controller.ConvertToModelCoordinates(RecatngleF rect); (5 Overloads are present for this method).

Let me know whether this helps you.

Thanks & Regards,
Ramya.

Loader.
Up arrow icon