Version

MinimumColumns Property

Gets or sets the minimum number of columns allowed when laying out the tiles in the UltraTilePanel.
Syntax
'Declaration
 
Public Property MinimumColumns As Integer
public int MinimumColumns {get; set;}

Property Value

The minimum number of columns to use when laying out the panel.
Exceptions
ExceptionDescription
System.ArgumentOutOfRangeException The assigned value is less than zero.
System.InvalidOperationExceptionThe assigned value is greater than MaximumColumns.
Example
The following code demonstrates how to control the number of rows and columns used to layout the tiles in the UltraTilePanel.

Imports System.Windows.Forms
Imports Infragistics.Win
Imports Infragistics.Win.Misc

' Make sure there are 4 columns of tiles regardless of how many tiles there 
' actually are.
Me.UltraTilePanel1.MinimumColumns = 4
Me.UltraTilePanel1.MaximumColumns = 4

' Make sure there are 3 rows of tiles regardless of how many tiles there 
' actually are.
Me.UltraTilePanel1.MinimumRows = 3
Me.UltraTilePanel1.MaximumRows = 3
using System.Windows.Forms;
using Infragistics.Win;
using Infragistics.Win.Misc;

// Make sure there are 4 columns of tiles regardless of how many tiles there 
// actually are.
this.ultraTilePanel1.MinimumColumns = 4;
this.ultraTilePanel1.MaximumColumns = 4;

// Make sure there are 3 rows of tiles regardless of how many tiles there 
// actually are.
this.ultraTilePanel1.MinimumRows = 3;
this.ultraTilePanel1.MaximumRows = 3;
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, 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