'宣言 Public Event BeforeColumnMoved As BeforeColumnMovedEventHandler
public event BeforeColumnMovedEventHandler BeforeColumnMoved
イベント ハンドラが、このイベントに関連するデータを含む、BeforeColumnMovedEventArgs 型の引数を受け取りました。次の BeforeColumnMovedEventArgs プロパティには、このイベントの固有の情報が記載されます。
プロパティ | 解説 |
---|---|
Cancel System.ComponentModel.CancelEventArgsから継承されます。 | |
Column | サイズ変更された UltraTreeNodeColumn を返します。 |
Imports Infragistics.Win Imports Infragistics.Win.Layout Imports Infragistics.Win.UltraWinTree Private Sub ultraTree1_AfterColumnMoved(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinTree.AfterColumnMovedEventArgs) Handles ultraTree1.AfterColumnMoved Debug.WriteLine("Column '" + e.Column.TextResolved + "' successfully moved") End Sub Private Sub ultraTree1_BeforeColumnMoved(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinTree.BeforeColumnMovedEventArgs) Handles ultraTree1.BeforeColumnMoved ' Disallow moving the leftmost column If e.Column.LayoutInfo.OriginX = 0 Then e.Cancel = True End If End Sub
using Infragistics.Win; using Infragistics.Win.Layout; using Infragistics.Win.UltraWinTree; using System.Diagnostics; private void ultraTree1_AfterColumnMoved(object sender, Infragistics.Win.UltraWinTree.AfterColumnMovedEventArgs e) { Debug.WriteLine( "Column '" + e.Column.TextResolved + "' successfully moved" ); } private void ultraTree1_BeforeColumnMoved(object sender, Infragistics.Win.UltraWinTree.BeforeColumnMovedEventArgs e) { // Disallow moving the leftmost column if ( e.Column.LayoutInfo.OriginX == 0 ) e.Cancel = true; }