We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

DeviceToView Equivalent

Thread ID:





61398 May 24,2007 06:01 PM May 25,2007 11:18 AM Windows Forms 1
Tags: Diagram
Asked On May 24, 2007 06:01 PM

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.

Ramya R [Syncfusion]
Replied On May 25, 2007 11:18 AM

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,


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.