Version

ResizeItem(ILayoutContainer,Object,ILayoutItem,Double,Double,Boolean,Boolean) Method

Resizes the specified layout item by specified deltaWidth and deltaHeight. Returns the new calculated preferred sizes of one or more items that will result in the resize item's target size.
Syntax
'Declaration
 
Public Overloads Function ResizeItem( _
   ByVal layoutContainer As ILayoutContainer, _
   ByVal containerContext As Object, _
   ByVal resizeItem As ILayoutItem, _
   ByVal deltaWidth As Double, _
   ByVal deltaHeight As Double, _
   ByVal autoFitWidth As Boolean, _
   ByVal autoFitHeight As Boolean _
) As Dictionary(Of ILayoutItem,Size)

Parameters

layoutContainer
Layout container. Used for getting the layout area rect, which is used when auto-fitting the layout in in an area that's different than the preferred size of the layout.
containerContext
Not used by the layout manager directly. It gets passed along to methods on the layout container.
resizeItem
Item being resized.
deltaWidth
Change in the width of the item. Can be 0 to indicate no change.
deltaHeight
Change in the height of the item. Can be 0 to indicate no change.
autoFitWidth
Specifies whether items will be autofitted horizontally within the layout container rect. Items will be resized in such a way that the width of the preferred size of the resultant layout will be equal container rect's width.
autoFitHeight
Specifies whether items will be autofitted vertically within the layout container rect. Items will be resized in such a way that the height of the preferred size of the resultant layout will be equal container rect's height.

Return Value

Returns the new preferred sizes of one or more items that will result in the target size of the resize item.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also