Version

Reposition Method (RibbonTab)

Repositions the tab relative to the specified RibbonTab
Syntax
'Declaration
 
Public Sub Reposition( _
   ByVal relativeTab As RibbonTab, _
   ByVal relativePosition As Infragistics.Win.RelativePosition _
) 
public void Reposition( 
   RibbonTab relativeTab,
   Infragistics.Win.RelativePosition relativePosition
)

Parameters

relativeTab
Tab used to determine where this tab will be repositioned with respect to.
relativePosition
Position relative to the relativeTab
Remarks

Note: This repositions the tab within the Tabs collection of the containing Ribbon. The visible order of the tabs is based on their order in the Tabs collection as well as whether they belong to a ContextualTabGroup. Tabs in a contextual tab group will always be positioned after tabs that do not belong to a contextual tab group.

Example
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinToolBars

Dim ribbonTab1 As RibbonTab = Me.UltraToolbarsManager1.Ribbon.Tabs.Add("FirstRibbonTab")
Dim ribbonTab2 As RibbonTab = Me.UltraToolbarsManager1.Ribbon.Tabs.Add("SecondRibbonTab")

ribbonTab2.Reposition(ribbonTab1, RelativePosition.Before)
using Infragistics.Win;
using Infragistics.Win.UltraWinToolBars;

RibbonTab ribbonTab1 = this.ultraToolbarsManager1.Ribbon.Tabs.Add("FirstRibbonTab");
RibbonTab ribbonTab2 = this.ultraToolbarsManager1.Ribbon.Tabs.Add("SecondRibbonTab");

ribbonTab2.Reposition(ribbonTab1, RelativePosition.Before);
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

Reference

RibbonTab Class
RibbonTab Members
Infragistics.Win.RelativePosition