Gets or sets a value indicating whether users are allowed to place items outside the scrollable area of the diagram.
Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming
C# Copy Code |
---|
public RestrictToBounds RestrictItemsToBounds { get; set; } |
Visual Basic Copy Code |
---|
Public Property RestrictItemsToBounds As RestrictToBounds |
A member of the RestrictToBounds enumeration. The default is Intersection.
Use this property to specify whether diagram elements can be drawn or moved outside the document area. It is possible to specify that items have to be entirely inside, partly outside or there is no restriction.
If there is no restriction and AutoResize is disabled, users could place an item to a position where they cannot reach it by scrolling. That might be interpreted as an item deletion operation by handling the NodeModified event and deleting the item if it is outside the document boundaries.
Diagramming for .NET MAUI Guide | © 2024 MindFusion |