'宣言 Public Overloads Sub PerformAutoResize( _ ByVal autoSizeMode As ColumnAutoSizeMode _ )
public void PerformAutoResize( ColumnAutoSizeMode autoSizeMode )
Imports Infragistics.Win Imports Infragistics.Win.Layout Imports Infragistics.Win.UltraWinTree Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim rootColumnSet As UltraTreeColumnSet = Me.ultraTree1.ColumnSettings.RootColumnSet rootColumnSet.Columns("CompanyName").PerformAutoResize(ColumnAutoSizeMode.AllNodes) End Sub
using Infragistics.Win; using Infragistics.Win.Layout; using Infragistics.Win.UltraWinTree; using System.Diagnostics; private void button1_Click(object sender, System.EventArgs e) { UltraTreeColumnSet rootColumnSet = this.ultraTree1.ColumnSettings.RootColumnSet; rootColumnSet.Columns["CompanyName"].PerformAutoResize( ColumnAutoSizeMode.AllNodes ); }