'Declaration Public Event TabMoved As MdiTabEventHandler
public event MdiTabEventHandler TabMoved
The event handler receives an argument of type MdiTabEventArgs containing data related to this event. The following MdiTabEventArgs properties provide information specific to this event.
The TabMoved event is invoked after an MdiTab is moved from one position to another. This may be a reposition in the Tabs of the containing TabGroup or as a result of being moved to a different MdiTabGroup. The end user may reposition a tab by either dragging the tab or via the right click context menu. Where the user may reposition the tabs is dependant on many settings including the tab's MdiTabSettingsResolved.AllowDrag, the AllowDrop of the tab groups, as well as the MaxTabGroups, AllowHorizontalTabGroups and AllowVerticalTabGroups. Programatically, the tab may be repositioned to a specific MdiTabGroup using the MdiTab.MoveToGroup or to a new MdiTabGroup using the MoveToNewGroup(MdiTab) method. A tab may also be repositioned using its MdiTab.Reposition method or it may be repositioned by its containing group using the MoveAllTabs.
Imports Infragistics.Win Imports Infragistics.Win.UltraWinTabs Imports Infragistics.Win.UltraWinTabbedMdi Private Sub ultraTabbedMdiManager1_TabMoved(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinTabbedMdi.MdiTabEventArgs) Handles ultraTabbedMdiManager1.TabMoved ' The 'TabMoved' event is invoked after a tab has been ' repositioned. ' The 'Tab' parameter returns the MdiTab object ' that was repositioned. Dim msg As String = String.Format("TabMoved: Tab ['{0}'] has been repositioned.", e.Tab) System.Diagnostics.Debug.WriteLine(msg) End Sub
using Infragistics.Win; using Infragistics.Win.UltraWinTabs; using Infragistics.Win.UltraWinTabbedMdi; private void ultraTabbedMdiManager1_TabMoved(object sender, Infragistics.Win.UltraWinTabbedMdi.MdiTabEventArgs e) { // The 'TabMoved' event is invoked after a tab has been // repositioned. // The 'Tab' parameter returns the MdiTab object // that was repositioned. string msg = string.Format("TabMoved: Tab ['{0}'] has been repositioned.", e.Tab); System.Diagnostics.Debug.WriteLine( msg ); }
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