Resizes the document scrollable area so it fits all diagram items, optionally considering ony the visible items.
Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming.Silverlight
C#
![]() |
---|
public void ResizeToFitItems ( |
Visual Basic
![]() |
---|
Public Sub ResizeToFitItems( _ |
Resizes the document area to be just as big as needed, for example the smallest rectangle containing all diagram items. For aesthetic reasons, additional space can be left around the outmost items as a margin. Invoking the method on an empty document produces no result.