'宣言 Public Property AllowDrop As Infragistics.Win.DefaultableBoolean
public Infragistics.Win.DefaultableBoolean AllowDrop {get; set;}
デフォルトで、任意の MdiTabGroup にあるタブを現在の TabGroup 内に、またはその他のタブ グループに位置変更できます。AllowDrag プロパティを使用すると、タブをドラッグできる場所や、MdiTab をドラッグできるかどうかを制限できます。AllowDrop プロパティを使用すると、特定のタブ グループに移動できるタブを制限できます。このプロパティを False に設定すると、他の MdiTabGroup インスタンスに含まれるタブを、このタブ グループの Tabs コレクションに追加することができなくなります。
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; }