バージョン

BeforeDataNodesCollectionPopulatedEventHandler デリゲート

BeforeDataNodesCollectionPopulated イベントのデリゲート。
シンタックス
'宣言
 
Public Delegate Sub BeforeDataNodesCollectionPopulatedEventHandler( _
   ByVal sender As Object, _
   ByVal e As BeforeDataNodesCollectionPopulatedEventArgs _
) 
public delegate void BeforeDataNodesCollectionPopulatedEventHandler( 
   object sender,
   BeforeDataNodesCollectionPopulatedEventArgs e
)

パラメータ

sender
e
使用例
Imports Infragistics.Win
Imports Infragistics.Win.Layout
Imports Infragistics.Win.UltraWinTree

    Private Sub ultraTree1_BeforeDataNodesCollectionPopulated(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinTree.BeforeDataNodesCollectionPopulatedEventArgs) Handles ultraTree1.BeforeDataNodesCollectionPopulated

        If Not e.Nodes.ParentNode Is Nothing Then
            Debug.WriteLine("Populating nodes collection for '" + e.Nodes.ParentNode.Text + "'...")
        Else
            Debug.WriteLine("Populating root nodes collection...")
        End If

    End Sub

    Private Sub ultraTree1_AfterDataNodesCollectionPopulated(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinTree.AfterDataNodesCollectionPopulatedEventArgs) Handles ultraTree1.AfterDataNodesCollectionPopulated

        If Not e.Nodes.ParentNode Is Nothing Then
            Debug.WriteLine("Nodes collection for '" + e.Nodes.ParentNode.Text + "' populated.")
        Else
            Debug.WriteLine("Root nodes collection populated.")
        End If

    End Sub
using Infragistics.Win;
using Infragistics.Win.Layout;
using Infragistics.Win.UltraWinTree;
using System.Diagnostics;

		private void ultraTree1_BeforeDataNodesCollectionPopulated(object sender, Infragistics.Win.UltraWinTree.BeforeDataNodesCollectionPopulatedEventArgs e)
		{
			if ( e.Nodes.ParentNode != null )
				Debug.WriteLine( "Populating nodes collection for '" + e.Nodes.ParentNode.Text + "'..." );
			else
				Debug.WriteLine( "Populating root nodes collection..." );
		}

		private void ultraTree1_AfterDataNodesCollectionPopulated(object sender, Infragistics.Win.UltraWinTree.AfterDataNodesCollectionPopulatedEventArgs e)
		{
			if ( e.Nodes.ParentNode != null )
				Debug.WriteLine( "Nodes collection for '" + e.Nodes.ParentNode.Text + "' populated." );
			else
				Debug.WriteLine( "Root nodes collection populated." );
		}
参照