Restrict the user from inserting nodes into the margins of the Diagram view

Applies to: Nevron Diagram for .NET

How to restrict the user from inserting nodes into the margins of the Diagram view?

If you have the ViewLayout set to Fit, there will be margins on the sides of the white page in the view. You can allow users to only edit (insert or drag and drop) diagram objects overtop the white page in the diagram.

You can use the AutoBoundsMode property of the drawing document. When set to CustomConstrained the drawing will not accept the bounds of the shapes inside it to go outside the user specified drawing bounds.

Article ID: 20, Created On: 9/29/2010, Modified: 11/15/2010