Version

MaxRows Property

Returns/sets the maximum number of rows that the panel can use to arrange its items.
Syntax
'Declaration
 
Public Property MaxRows As Integer
public int MaxRows {get; set;}
Exceptions
ExceptionDescription
System.ArgumentOutOfRangeExceptionMaxRows must be a value between 1 and 3.
Remarks

The MinRows represents the preferred number of rows that the panel should use to arrange its items. This must be a value between 1 and 3.

Example
ToolHorizontalWrapPanel MaxRows, MinRows properties

Dim toolHWrapPanel As New ToolHorizontalWrapPanel() 
toolHWrapPanel.MinRows = 1 
toolHWrapPanel.MaxRows = 2
ToolHorizontalWrapPanel toolHWrapPanel = new ToolHorizontalWrapPanel();
toolHWrapPanel.MinRows = 1;
toolHWrapPanel.MaxRows = 2;
<igRibbon:ToolHorizontalWrapPanel MaxRows="3" MinRows="1">
    
<igRibbon:ButtonTool igRibbon:ToolHorizontalWrapPanel.SortOrder="1" Id="Button1" Caption="Tool Button1 ... " />
    
<igRibbon:ButtonTool igRibbon:ToolHorizontalWrapPanel.SortOrder="2" Id="Button2" Caption="Tool Button2 ... " />
    
<igRibbon:ButtonTool igRibbon:ToolHorizontalWrapPanel.SortOrder="13" Id="Button3" Caption="Tool Button3 ... " />
    
<igRibbon:ButtonTool igRibbon:ToolHorizontalWrapPanel.SortOrder="14" Id="Button4" Caption="Tool Button4 ... " />
    
<igRibbon:ButtonTool igRibbon:ToolHorizontalWrapPanel.SortOrder="5" Id="Button5" Caption="Tool Button5 ... " />
</igRibbon:ToolHorizontalWrapPanel>
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