We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Available Options to Resizing the Model

Platform: WinForms |
Control: Diagram

In diagram control, to Resize the model there are more number of options available. Those options are differentiated by the Type and constraint (enabling/disabling “SizeToContent” property) which are listed in below.

 

Model’s LogicalSize property

 

Using Model’s LogicalSize property we can Assign/Resize the size of the Model type as System.Drawing.SizeF. The following code illustrates to resize the Model.

 

[C#]

 

diagram1.Model.LogicalSize = new SizeF(500, 500);

 

[VB]

 

diagram1.Model.LogicalSize = new SizeF(500, 500)

 

Model’s DocumentSize property

 

This property is also used to Assign/Resize the size of the Model type as Syncfusion.Windows.Forms.Diagram.PageSize . The following code illustrates to resize the Model.

 

[C#]

 

diagram1.Model.DocumentSize = new PageSize(500, 500);

 

[VB]

 

diagram1.Model.DocumentSize = new PageSize(500, 500)

 

Model’s MinimumSize Property

 

This property is used to set the minimum size of the Model under the type of System.Drawing.SizeF. But this property is used only when the Model’s SizeToContent property is enabled. Otherwise, it is not considered by the diagram. The following code illustrates to how to set minimum size value.

 

[C#]

 

diagram1.Model.MinimumSize = new SizeF(300, 300);

 

[VB]

 

diagram1.Model.MinimumSize = new SizeF(300, 300)

 

2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile