Version

CalculateAutoLayout Method

Calculates the row/column values for the specified items to fill the layout area.
Syntax
'Declaration
 
Public Function CalculateAutoLayout( _
   ByVal items As IEnumerator(Of ILayoutItem), _
   ByVal layoutOrientation As Orientation, _
   ByVal autoFitAllItems As Boolean, _
   ByVal constraint As Size, _
   ByVal minRows As Integer, _
   ByVal minColumns As Integer, _
   ByVal maxRows As Integer, _
   ByVal maxColumns As Integer, _
   ByVal constraintedOrientation As Nullable(Of Orientation) _
) As GridBagLayoutItemDimensionsCollection

Parameters

items
Items to auto-layout.
layoutOrientation
Direction in which to layout items.
autoFitAllItems
If true all items will be auto-fitted within the layout area.
constraint
Layout are size.
minRows
Minimum number of logical rows of items.
minColumns
Minimum number of logical columns of items.
maxRows
Maximum number of logical rows of items.
maxColumns
Maximum number of logical columns of items.
constraintedOrientation
If specified non-null, then items will be laid in such a way that they will be not be allowed to go beyond the edge of the container in the constrained orientation (unless other constraints force otherwise). If null then items will not be constrained in either orientation.

Return Value

Calculated layout information in the form of a GridBagLayoutItemDimensionsCollection instance.
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