Articles in this section
Category / Section

Is it possible to resize the model bounds to fit to its content?

1 min read

Is it possible to resize the model bounds to fit to its content?

Yes. You can use Model.SizeToContent property to reisize the model bounds to fit to its content. Please refer the below code snippet to achieve this:

C#

// Resizes the model bounds to fit to its content.
this.diagram1.Model.SizeToContent = true;

 

VB

' Resizes the model bounds to fit to its content.
Me.diagram1.Model.SizeToContent = True

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied