Gets or sets a value indicating whether the document area should be resized automatically so it fits the diagram contents.
Namespace: MindFusion.Diagramming.Wpf
Assembly: MindFusion.Diagramming.Wpf
C# Copy Code |
---|
public AutoResize AutoResize { get; set; } |
Visual Basic Copy Code |
---|
Public Property AutoResize As AutoResize |
A member of the AutoResize enumeration. The default is AutoResize.RightAndDown.
If automatic resizing is enabled, the size of the document scrollable area is updated each time an item is created, deleted or moved, either by end-users or by method calls. The following AutoResize values specify in what directions the diagram area is allowed to grow:
Member name | Description |
---|---|
None | Do not enlarge the diagram area automatically. |
RightAndDown | Enlarge the diagram area to the right and down if an item is moved outside the boundaries in these directions. |
AllDirections | Enlarge the diagram area in any direction if an item is moved outside the boundaries. |
WpfDiagram Programmer's Guide | © 2024 MindFusion |