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. Image for the cookie policy date

Inch base drawing on diagram

Hi,
I am using diagram control for drawing rectangle. This control drew rectangles based on pixels. But i want to display rectangles based on inches. plz, help me how to show inch values' rectangles on diagram control?

1 Reply

GM Gowri Manohari D Syncfusion Team June 4, 2009 09:33 AM UTC

Hi Rajeswari ,

Thanks for choosing Syncfusion Products.


MeasureUnit is one of the argument of Rectangle class. We can specify the MeasureUnits for your requirement as MeasureUnits.Inch.The below code illustrate this.

Syncfusion.Windows.Forms.Diagram.Rectangle r =
new Syncfusion.Windows.Forms.Diagram.Rectangle(1,1,3,1, MeasureUnits.Inch);
diagram1.Model.AppendChild(r);


Thanks & Regards,
Gowri

Loader.
Live Chat Icon For mobile
Up arrow icon