Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
93768 | Apr 2,2010 11:33 AM UTC | Apr 13,2010 12:48 PM UTC | WinForms | 3 |
![]() |
Tags: Diagram |
[c#]
float locationX = (diagram1.Width - diagram1.View.Width) / 2;
float locationY = (diagram1.Height - diagram1.View.Height) / 2;
this.diagram1.View.Origin = new PointF(-locationX, -locationY);
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.
or the page will be automatically redirected to sign-in page in 10 seconds.