'宣言 Public Event AfterPaneButtonClick As PaneButtonEventHandler
public event PaneButtonEventHandler AfterPaneButtonClick
イベント ハンドラが、このイベントに関連するデータを含む、PaneButtonEventArgs 型の引数を受け取りました。次の PaneButtonEventArgs プロパティには、このイベントの固有の情報が記載されます。
プロパティ | 解説 |
---|---|
Button | イベントに関連付けられた PaneButton を返します。 |
Pane | イベントに関連付けられたペインを返します。 |
Imports Infragistics.Shared Imports Infragistics.Win Imports Infragistics.Win.UltraWinDock Private Sub ultraDockManager1_AfterPaneButtonClick(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinDock.PaneButtonEventArgs) Handles ultraDockManager1.AfterPaneButtonClick ' The AfterPaneButtonClick provides a notification ' after the action associated with clicking a pane caption ' button has been invoked. ' ' Let the user know how to display the window again ' if they close it ' If (e.Button = PaneButton.Close) Then MessageBox.Show(Me, _ String.Format("The '{0}' window was closed. To show the window again, select the window from the 'View' menu.", e.Pane.Text), _ Application.ProductName, _ MessageBoxButtons.OK, _ MessageBoxIcon.Information) End If End Sub
using Infragistics.Shared; using Infragistics.Win; using Infragistics.Win.UltraWinDock; using System.Diagnostics; private void ultraDockManager1_AfterPaneButtonClick(object sender, Infragistics.Win.UltraWinDock.PaneButtonEventArgs e) { // The AfterPaneButtonClick provides a notification // after the action associated with clicking a pane caption // button has been invoked. // // Let the user know how to display the window again // if they close it // if (e.Button == PaneButton.Close) { MessageBox.Show(this, string.Format("The '{0}' window was closed. To show the window again, select the window from the 'View' menu.",e.Pane.Text), Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Information); } }