Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
320
Ordering the tabs in the utm
posted

Is it possible to re arange the tabs in the ultratoolbarmanager after they have been added. For example if i add:

utm.Ribbon.Tabs.Add("Tab1")

utm.Ribbon.Tabs.Add("Tab3")

utm.Ribbon.Tabs.Add("Tab2")

Can i later programaticaly put the tabs into order i.e 1, 2, 3

 Thanks

  • 5118
    posted

    Hi,

    Yes you can do this by gaining a reference to the RibbonTab in question and invoke Reposition on it. 

    An example would be:

    Dim rtab As Infragistics.Win.UltraWinToolbars.RibbonTab = Me.ultraToolbarsManager1.Ribbon.Tabs("Tab3")

    rtab.Reposition(Me.ultraToolbarsManager1.Ribbon.Tabs("Tab2"), Infragistics.Win.RelativePosition.After)