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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

DeviceToView Equivalent

Thread ID:

Created:

Updated:

Platform:

Replies:

61398 May 24,2007 10:01 PM UTC May 25,2007 03:18 PM UTC WinForms 1
loading
Tags: Diagram
ERobishaw
Asked On May 24, 2007 10:01 PM UTC

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 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.

CONFIRMATION

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.

Warning Icon 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.Close Icon

;