バージョン

TabClosed イベント

MdiTab が閉じた後に発生するイベント。
シンタックス
'宣言
 
Public Event TabClosed As MdiTabEventHandler
public event MdiTabEventHandler TabClosed
イベント データ

イベント ハンドラが、このイベントに関連するデータを含む、MdiTabEventArgs 型の引数を受け取りました。次の MdiTabEventArgs プロパティには、このイベントの固有の情報が記載されます。

プロパティ解説
Tab 関連付けられた MdiTab を返します。
解説

TabClosedイベントは、MdiTab.Close メソッドが呼び出されたとき、閉じるボタンが押されたとき、またはタブのコンテキストメニューで[Close]メニューオプションが選択されたときに、MdiTabSettingsResolved.TabCloseAction で指定されたアクションが実行されてから呼び出されます。

使用例
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinTabs
Imports Infragistics.Win.UltraWinTabbedMdi

Private Sub ultraTabbedMdiManager1_TabClosed(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinTabbedMdi.MdiTabEventArgs) Handles ultraTabbedMdiManager1.TabClosed
    ' The 'TabClosed' event is invoked after the resolved 
    ' TabCloseAction has been performed either via the 
    ' ui (close button or close menu item) or by calling
    ' the Close method of the tab. Depending upon the 
    ' TabCloseAction, the tab may no longer be associated 
    ' with the UltraTabbedMdiManager.
    '

    ' The tab will no longer be associated with the form if it was 
    ' closed.
    If e.Tab.Form Is Nothing Then
        Return
    End If

    ' If the TabCloseAction resolves to None, then no action is
    ' taken on the tab or associated form so you can perform
    ' some custom action.
    If e.Tab.SettingsResolved.TabCloseAction = MdiTabCloseAction.None Then
        ' Perform custom action when a close occurs...
    End If
End Sub
using Infragistics.Win;
using Infragistics.Win.UltraWinTabs;
using Infragistics.Win.UltraWinTabbedMdi;

private void ultraTabbedMdiManager1_TabClosed(object sender, Infragistics.Win.UltraWinTabbedMdi.MdiTabEventArgs e)
{
	// The 'TabClosed' event is invoked after the resolved 
	// TabCloseAction has been performed either via the 
	// ui (close button or close menu item) or by calling
	// the Close method of the tab. Depending upon the 
	// TabCloseAction, the tab may no longer be associated 
	// with the UltraTabbedMdiManager.
	//

	// The tab will no longer be associated with the form if it was 
	// closed.
	if (e.Tab.Form == null)
		return;

	// If the TabCloseAction resolves to None, then no action is
	// taken on the tab or associated form so you can perform
	// some custom action.
	if (e.Tab.SettingsResolved.TabCloseAction == MdiTabCloseAction.None)
	{
		// Perform custom action when a close occurs...
	}
}
参照