Version

TabSettings Property (MdiTabGroup)

Returns an MdiTabSettings instance used to control the tab appearance and behavior for the MdiTab objects contained within the MdiTabGroup
Syntax
'Declaration
 
Public ReadOnly Property TabSettings As MdiTabSettings
public MdiTabSettings TabSettings {get;}
Remarks

The TabSettings property returns an instance of an MdiTabSettings object. This object has properties that affect the appearance and behavior of the Tabs. Properties not explicitly set on the Settings of the contained tabs are resolved using this object.

Note: This property will only affect the Tabs of this MdiTabGroup. If the MdiTabGroup does not contain any tabs, this property will have no effect on any tabs within the TabGroups of this MdiTabGroup.

Example
The following examples demonstrates how to use the InitializeTabGroup event to initialize settings for a new MdiTabGroup.

For an overview of how to handle events in Visual Basic or Visual C#, see Event Handlers in Visual Basic and Visual C#. For specific information and code examples illustrating how to consume events in your application, see Consuming Events in the .NET Framework Developer's Guide.

Imports Infragistics.Win
Imports Infragistics.Win.UltraWinTabs
Imports Infragistics.Win.UltraWinTabbedMdi

Private Sub ultraTabbedMdiManager1_InitializeTabGroup(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinTabbedMdi.MdiTabGroupEventArgs) Handles ultraTabbedMdiManager1.InitializeTabGroup
    ' The 'InitializeTabGroup' event is invoked when a new 
    ' MdiTabGroup object is created. The tab group doesn't
    ' have any tabs associated with it. The 'TabGroup'
    ' parameter provides the MdiTabGroup being initialized.
    '

    ' the 'TabSettings' returns an MdiTabSettings object
    ' that can be used to initialize the settings for the 
    ' tabs contained within the group
    '

    ' AllowDrag determines whether/where a tab may be dragged.
    ' We'll set it to only allow the tabs to be repositioned
    ' within the group.
    '
    e.TabGroup.TabSettings.AllowDrag = MdiTabDragStyle.WithinGroup


    ' the 'Settings' property returns an MdiTabGroupSettings object
    ' that can be used to initialize the settings for the group.
    '

    ' AllowDrop determines whether tabs from other groups
    ' may be into the group.
    '
    e.TabGroup.Settings.AllowDrop = DefaultableBoolean.False
End Sub
using Infragistics.Win;
using Infragistics.Win.UltraWinTabs;
using Infragistics.Win.UltraWinTabbedMdi;

private void ultraTabbedMdiManager1_InitializeTabGroup(object sender, Infragistics.Win.UltraWinTabbedMdi.MdiTabGroupEventArgs e)
{
	// The 'InitializeTabGroup' event is invoked when a new 
	// MdiTabGroup object is created. The tab group doesn't
	// have any tabs associated with it. The 'TabGroup'
	// parameter provides the MdiTabGroup being initialized.
	//

	// the 'TabSettings' returns an MdiTabSettings object
	// that can be used to initialize the settings for the 
	// tabs contained within the group
	//

	// AllowDrag determines whether/where a tab may be dragged.
	// We'll set it to only allow the tabs to be repositioned
	// within the group.
	//
	e.TabGroup.TabSettings.AllowDrag = MdiTabDragStyle.WithinGroup;


	// the 'Settings' property returns an MdiTabGroupSettings object
	// that can be used to initialize the settings for the group.
	//

	// AllowDrop determines whether tabs from other groups
	// may be into the group.
	//
	e.TabGroup.Settings.AllowDrop = DefaultableBoolean.False;
}
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