'宣言 Public Event BeforeDockChangeStart As CancelablePaneEventHandler
public event CancelablePaneEventHandler BeforeDockChangeStart
イベント ハンドラが、このイベントに関連するデータを含む、CancelablePaneEventArgs 型の引数を受け取りました。次の CancelablePaneEventArgs プロパティには、このイベントの固有の情報が記載されます。
プロパティ | 解説 |
---|---|
Cancel System.ComponentModel.CancelEventArgsから継承されます。 | |
Pane | イベントに関連付けられたDockablePaneBaseインスタンス。このプロパティは読み取り専用です。 |
Imports Infragistics.Shared Imports Infragistics.Win Imports Infragistics.Win.UltraWinDock Private Sub ultraDockManager1_BeforeDockChangeStart(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinDock.CancelablePaneEventArgs) Handles ultraDockManager1.BeforeDockChangeStart ' The BeforeDockChangeStart is invoked when the a ' pane is about to be dragged but before the drag ' operation has begun. The event can be cancelled ' by setting the Cancel parameter to true. ' Do not allow the tree or list panes ' to be dragged individually If (e.Pane.Key = "tree" OrElse e.Pane.Key = "list") Then e.Cancel = True End If End Sub
using Infragistics.Shared; using Infragistics.Win; using Infragistics.Win.UltraWinDock; using System.Diagnostics; private void ultraDockManager1_BeforeDockChangeStart(object sender, Infragistics.Win.UltraWinDock.CancelablePaneEventArgs e) { // The BeforeDockChangeStart is invoked when the a // pane is about to be dragged but before the drag // operation has begun. The event can be cancelled // by setting the Cancel parameter to true. // Do not allow the tree or list panes // to be dragged individually if (e.Pane.Key == "tree" || e.Pane.Key == "list") e.Cancel = true; }