バージョン

ScrollBarKeyActionMappings クラス

ScrollBarKeyActionMappings
シンタックス
'宣言
 
Public Class ScrollBarKeyActionMappings 
   Inherits Infragistics.Win.KeyActionMappingsBase
public class ScrollBarKeyActionMappings : Infragistics.Win.KeyActionMappingsBase 
使用例
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinScrollBar

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

    Dim mapping As ScrollBarKeyActionMapping

    ' Add a key action mapping that will scroll the 
    ' scrollbar to its maximum value if the user presses
    ' the 'L' key and the thumb isn't being dragged.
    mapping = New ScrollBarKeyActionMapping(Keys.L, ScrollBarAction.Last, ScrollBarState.ThumbDrag, 0, Infragistics.Win.SpecialKeys.Alt, 0)
    Me.ultraScrollBar1.KeyActionMappings.Add(mapping)

    ' Add a key action mapping that will scroll the 
    ' scrollbar to its mimimum value if the user presses
    ' the 'F' key and the thumb isn't being dragged.
    mapping = New ScrollBarKeyActionMapping(Keys.F, ScrollBarAction.First, ScrollBarState.ThumbDrag, 0, Infragistics.Win.SpecialKeys.Alt, 0)
    Me.ultraScrollBar1.KeyActionMappings.Add(mapping)

End Sub
using Infragistics.Win;
using Infragistics.Win.UltraWinScrollBar;

private void Form1_Load(object sender, System.EventArgs e)
{

	// Add a key action mapping that will scroll the 
	// scrollbar to its maximum value if the user presses
	// the 'L' key and the thumb isn't being dragged.
	this.ultraScrollBar1.KeyActionMappings.Add( 
		new ScrollBarKeyActionMapping( 
			// the key code
			Keys.L,
			// the action to take
			ScrollBarAction.Last,
			// disallowed state
			ScrollBarState.ThumbDrag, 
			// required state 
			0,
			// diallowed special keys
			Infragistics.Win.SpecialKeys.Alt, 
			// requird special keys
			0 ) );

	// Add a key action mapping that will scroll the 
	// scrollbar to its minimum value if the user presses
	// the 'F' key and the thumb isn't being dragged.
	this.ultraScrollBar1.KeyActionMappings.Add( 
		new ScrollBarKeyActionMapping( 
			// the key code
			Keys.F,
			// the action to take
			ScrollBarAction.First,
			// disallowed state
			ScrollBarState.ThumbDrag, 
			// required state 
			0,
			// diallowed special keys
			Infragistics.Win.SpecialKeys.Alt, 
			// requird special keys
			0 ) );

}
参照