Version

MergeOrder Property (RibbonGroup)

Gets or sets a value indicating the relative position of the group when it is merged into a RibbonTab.
Syntax
'Declaration
 
Public Property MergeOrder As Integer
public int MergeOrder {get; set;}
Example
The following code demonstrates how to control the ordering of ribbon tabs and groups when mdi merging takes place.

Imports Infragistics.Win.UltraWinToolbars

Private Sub button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button1.Click
	' Set the merge orders on the ribbon tabs in the child and parent 
	' managers.  This will cause the first tab of the child manager
	' to be placed before the first tab on the parent manager when
	' the managers are merged.
	Me.parentToolbarsManager.Ribbon.Tabs.Item(0).MergeOrder = 2
	Me.childToolbarsManager.Ribbon.Tabs.Item(0).MergeOrder = 1

	Me.parentToolbarsManager.Ribbon.Tabs.Item(1).MergeOrder = 3

	' Set the merge orders on the ribbon groups of two tabs which will be
	' merged together.  This will cause the child group in the merged tab
	' to be placed before the parent group in the merged tab when the managers
	' are merged.
	Me.parentToolbarsManager.Ribbon.Tabs.Item(1).Groups.Item(0).MergeOrder = 2
	Me.childToolbarsManager.Ribbon.Tabs.Item(1).Groups.Item(0).MergeOrder = 1

	' Merge the child manager into the parent manager.
	Me.parentToolbarsManager.ActiveMdiChildManager = Me.childToolbarsManager
End Sub
using System.Windows.Forms;
using Infragistics.Win.UltraWinToolbars;

private void button1_Click( object sender, EventArgs e )
{
	// Set the merge orders on the ribbon tabs in the child and parent 
	// managers.  This will cause the first tab of the child manager
	// to be placed before the first tab on the parent manager when
	// the managers are merged.
	this.parentToolbarsManager.Ribbon.Tabs[ 0 ].MergeOrder = 2;
	this.childToolbarsManager.Ribbon.Tabs[ 0 ].MergeOrder = 1;

	this.parentToolbarsManager.Ribbon.Tabs[ 1 ].MergeOrder = 3;

	// Set the merge orders on the ribbon groups of two tabs which will be
	// merged together.  This will cause the child group in the merged tab
	// to be placed before the parent group in the merged tab when the managers
	// are merged.
	this.parentToolbarsManager.Ribbon.Tabs[ 1 ].Groups[ 0 ].MergeOrder = 2;
	this.childToolbarsManager.Ribbon.Tabs[ 1 ].Groups[ 0 ].MergeOrder = 1;

	// Merge the child manager into the parent manager.
	this.parentToolbarsManager.ActiveMdiChildManager = this.childToolbarsManager;
}
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