バージョン

KeyActionMappings プロパティ (UltraScrollBar)

キーの押下と、そのときのキーのアクションとを関連付けるマッピングコレクションを返します。
シンタックス
'宣言
 
Public ReadOnly Property KeyActionMappings As ScrollBarKeyActionMappings
public ScrollBarKeyActionMappings KeyActionMappings {get;}
解説

次の表は、UltraScrollBar コントロールのデフォルトのキーマッピングをリストしたものです。

KeyCode ActionCode StateRequired StateDisallowed SpecialKeysRequired SpecialKeysDisallowed
SmallDecrement ThumbDrag Alt
SmallIncrement ThumbDrag Alt
Up SmallDecrement ThumbDrag Alt
Down SmallIncrement ThumbDrag Alt
Prior LargeDecrement ThumbDrag Alt
Next LargeIncrement ThumbDrag Alt
Home First ThumbDrag Alt
End Last ThumbDrag Alt

使用例
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 ) );

}
参照