Visual Basic (Declaration) | |
---|---|
Protected Overridable Sub OnSizeChanged( _ ByVal oldsize As Size, _ ByVal newsize As Size _ ) |
Parameters
- oldsize
- a
Size
in element coordinates - newsize
- a
Size
in element coordinates
This may change the DiagramPanel.Position and/or DiagramPanel.Scale in order to maintain the desired content alignment, depending on the Stretch policy. The DiagramPanel.Scale will not be greater than 1. This method may be called during initialization even if the old and new size values are the same. This respects the
UseLayoutRounding
property to round off the DiagramPanel.Position. This method calls OnViewportBoundsChanged.