'宣言 Public Event AfterDataNodesCollectionPopulated As AfterDataNodesCollectionPopulatedEventHandler
public event AfterDataNodesCollectionPopulatedEventHandler AfterDataNodesCollectionPopulated
イベント ハンドラが、このイベントに関連するデータを含む、AfterDataNodesCollectionPopulatedEventArgs 型の引数を受け取りました。次の AfterDataNodesCollectionPopulatedEventArgs プロパティには、このイベントの固有の情報が記載されます。
プロパティ | 解説 |
---|---|
IsPrinting Infragistics.Win.UltraWinTree.DataNodesCollectionPopulatedEventArgsから継承されます。 | 生成されているノード コレクションが UltraTreePrintDocument によって印刷のために使用されるツリーにある場合は True を返します。 |
Nodes Infragistics.Win.UltraWinTree.DataNodesCollectionPopulatedEventArgsから継承されます。 | データソースから初期化される TreeNodesCollection インスタンスを返します。 |
Imports Infragistics.Win.UltraWinTree Private Sub ultraTree1_AfterDataNodesCollectionPopulated(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinTree.AfterDataNodesCollectionPopulatedEventArgs) Handles ultraTree1.AfterDataNodesCollectionPopulated ' This event fires after the tree has populated a Nodes collection ' with data from the data source. ' Since the nodes collection has been populated with nodes at this point, ' This is an excellent place to autosize the columns based on their ' contents. Dim column As UltraTreeNodeColumn For Each column In e.Nodes.ColumnSetResolved.Columns column.PerformAutoResize(ColumnAutoSizeMode.AllNodesWithDescendants) Next End Sub
using Infragistics.Win.UltraWinTree; private void ultraTree1_AfterDataNodesCollectionPopulated(object sender, Infragistics.Win.UltraWinTree.AfterDataNodesCollectionPopulatedEventArgs e) { // This event fires after the tree has populated a Nodes collection // with data from the data source. // Since the nodes collection has been populated with nodes at this point, // this is an excellent place to autosize the columns based on their // contents. foreach (UltraTreeNodeColumn column in e.Nodes.ColumnSetResolved.Columns) column.PerformAutoResize(ColumnAutoSizeMode.AllNodesWithDescendants); }