Version

MaximumRows Property

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

Property Value

The maximum number of rows to use when laying out the panel.
Exceptions
ExceptionDescription
System.ArgumentOutOfRangeException The assigned value is less than zero.
System.InvalidOperationExceptionThe assigned value is a non-zero value which is less than MinimumRows.
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