'宣言 Protected Overrides Sub OnPropertyChanged( _ ByVal e As Infragistics.Win.PropertyChangedEventArgs _ )
protected override void OnPropertyChanged( Infragistics.Win.PropertyChangedEventArgs e )
Private Sub ultraTree1_PropertyChanged(ByVal sender As Object, ByVal e As Infragistics.Win.PropertyChangedEventArgs) Handles ultraTree1.PropertyChanged Dim pci As Infragistics.Shared.PropChangeInfo ' テキスト プロパティが変更されたかどうかを確認します pci = e.ChangeInfo.FindPropId(Infragistics.Win.UltraWinTree.PropertyIds.Text) If Not pci Is Nothing Then ' ソースがノードの場合、そのキーおよび新しい名前を表示します If TypeOf (pci.Source) Is Infragistics.Win.UltraWinTree.UltraTreeNode Then Dim node As Infragistics.Win.UltraWinTree.UltraTreeNode node = pci.Source Debug.WriteLine("Node " + node.Key + "'s text has changed to: " + node.Text) End If End If End Sub
using System.Diagnostics; private void ultraTree1_PropertyChanged(object sender, Infragistics.Win.PropertyChangedEventArgs e) { Infragistics.Shared.PropChangeInfo pci; // テキスト プロパティが変更されたかどうかを確認します pci = e.ChangeInfo.FindPropId( Infragistics.Win.UltraWinTree.PropertyIds.Text ); if ( pci != null ) { Infragistics.Win.UltraWinTree.UltraTreeNode node; // ソースがノードの場合、そのキーおよび新しい名前を表示します node = pci.Source as Infragistics.Win.UltraWinTree.UltraTreeNode; if ( node != null ) { Debug.WriteLine( "Node " + node.Key + "'s text has changed to: " + node.Text ); } } }