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.
ADAdministrator Syncfusion Team July 26, 2005 07:29 PM UTC
Hi Jeff,
You can use the Diagram.View.Magnification property to set a magnification ratio that scales the diagram to fit the control bounds. The scale ratio can be estimated as follows,
Size scaleratio = new Size((int)((this.diagramComponent.View.Width/this.diagramComponent.Model.Bounds.Width)*100), (int)((this.diagramComponent.View.Height/this.diagramComponent.Model.Height)*100));
this.diagramComponent.View.Magnification = scaleratio;
this.diagramComponent.View.Origin = new PointF(0,0);
this.diagramComponent.View.Update(true);
Regards,
Prakash Surendra
Syncfusion Inc.,
JFJeff FanslerJuly 28, 2005 03:43 PM UTC
Hi Prakash,
This worked great. Thanks.
-Jeff
>Hi Jeff,
>
>You can use the Diagram.View.Magnification property to set a magnification ratio that scales the diagram to fit the control bounds. The scale ratio can be estimated as follows,
>
>Size scaleratio = new Size((int)((this.diagramComponent.View.Width/this.diagramComponent.Model.Bounds.Width)*100), (int)((this.diagramComponent.View.Height/this.diagramComponent.Model.Height)*100));
>
>this.diagramComponent.View.Magnification = scaleratio;
>this.diagramComponent.View.Origin = new PointF(0,0);
>this.diagramComponent.View.Update(true);
>
>Regards,
>Prakash Surendra
>Syncfusion Inc.,