バージョン

ControlPaneEventHandler デリゲート

ひとつの DockableControlPane に関連するイベントを処理するためのデリゲート。
シンタックス
'宣言
 
Public Delegate Sub ControlPaneEventHandler( _
   ByVal sender As Object, _
   ByVal e As ControlPaneEventArgs _
) 
public delegate void ControlPaneEventHandler( 
   object sender,
   ControlPaneEventArgs e
)

パラメータ

sender
e
使用例
Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinDock

Private Sub ultraDockManager1_AfterToggleDockState(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinDock.PaneEventArgs) Handles ultraDockManager1.AfterToggleDockState

    ' The AfterToggleDockState is invoked after a pane's
    ' docked location was changed from docked to floating
    ' or floating to docked by double clicking on the pane
    ' caption or the tab item.
    '

    If (e.Pane.DockedState = DockedState.Floating) Then
        Debug.WriteLine(String.Format("The pane '{0}' was toggled from docked to floating", e.Pane.Key))
    Else
        Debug.WriteLine(String.Format("The pane '{0}' was toggled from floating to docked", e.Pane.Key))
    End If

End Sub
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.UltraWinDock;
using System.Diagnostics;

private void ultraDockManager1_AfterToggleDockState(object sender, Infragistics.Win.UltraWinDock.PaneEventArgs e)
{

	// The AfterToggleDockState is invoked after a pane's
	// docked location was changed from docked to floating
	// or floating to docked by double clicking on the pane
	// caption or the tab item.
	//

	if (e.Pane.DockedState == DockedState.Floating)
		Debug.WriteLine( string.Format("The pane '{0}' was toggled from docked to floating", e.Pane.Key) );
	else
		Debug.WriteLine( string.Format("The pane '{0}' was toggled from floating to docked", e.Pane.Key) );

}
参照