バージョン

ToolEventHandler デリゲート

引数としてツールで渡すイベントを処理するためのデリゲート。
シンタックス
'宣言
 
Public Delegate Sub ToolEventHandler( _
   ByVal sender As Object, _
   ByVal e As ToolEventArgs _
) 
public delegate void ToolEventHandler( 
   object sender,
   ToolEventArgs e
)

パラメータ

sender
e
使用例
Imports System.Diagnostics
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinToolbars

	Private Sub UltraToolbarsManager1_AfterToolActivate(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinToolbars.ToolEventArgs) Handles UltraToolbarsManager1.AfterToolActivate

		Debug.WriteLine("The tool with key '" + e.Tool.Key + "' has been activated")

	End Sub
using System.Diagnostics;
using Infragistics.Win;
using Infragistics.Win.UltraWinToolbars;

		private void ultraToolbarsManager1_AfterToolActivate(object sender, Infragistics.Win.UltraWinToolbars.ToolEventArgs e)
		{

			Debug.WriteLine("The tool with key '" + e.Tool.Key + "' has been activated");

		}
参照