バージョン

OnScroll メソッド

コントロールがスクロールされたときに呼び出されます。
シンタックス
'宣言
 
Protected Overridable Sub OnScroll( _
   ByVal e As TreeScrollEventArgs _
) 
protected virtual void OnScroll( 
   TreeScrollEventArgs e
)

パラメータ

e
イベントのデータを含む System.EventArgs
使用例
Imports Infragistics.Win.UltraWinTree

Private Sub ultraTree1_Scroll(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinTree.TreeScrollEventArgs) Handles ultraTree1.Scroll

    Dim sb As New System.Text.StringBuilder()

    sb.Append("The tree has scrolled. ScrollbarType :")
    sb.Append(e.ScrollBarType)
    sb.Append(" ScrollEventType: ")
    sb.Append(e.ScrollEventArgs.Type)
    sb.Append(" new value: ")
    sb.Append(e.ScrollEventArgs.NewValue)

    Debug.WriteLine(sb.ToString())

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

private void ultraTree1_Scroll(object sender, Infragistics.Win.UltraWinTree.TreeScrollEventArgs e)
{

	System.Text.StringBuilder sb = new System.Text.StringBuilder();

	sb.Append("The tree has scrolled. ScrollbarType :");
	sb.Append(e.ScrollBarType);
	sb.Append(" ScrollEventType: ");
	sb.Append(e.ScrollEventArgs.Type);
	sb.Append(" new value: ");
	sb.Append(e.ScrollEventArgs.NewValue);

	Debug.WriteLine( sb.ToString() );
		
}
参照