Hi Truman,
Thanks for your interest in Syncfusion products.
We suggest you to set the Diagram.Model’s ‘SizeToContent’ property to ‘true’ to achieve your requirement. Please refer the below code snippet.
Here is the code:
[C#]
//Indicates whether Model will be sized to its content, but not less than MinimumSize
diagram1.Model.SizeToContent = true;
Here is the Sample:
ForumSizeToContent2127102533.zipPlease try the above sample and let us know if you have any queries.
Regards,
Amsath Ali. M