The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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?
GMGowri 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);