GrapeCity.Xaml.SpreadSheet.UI
KeyMap Property
Example 


GrapeCity.Xaml.SpreadSheet.UI Namespace > SheetView Class : KeyMap Property
Gets the key map collection that contains associated keys and actions.
Syntax
'Declaration
 
Public ReadOnly Property KeyMap As Dictionary(Of KeyStroke,SpreadAction)
'Usage
 
Dim instance As SheetView
Dim value As Dictionary(Of KeyStroke,SpreadAction)
 
value = instance.KeyMap
public Dictionary<KeyStroke,SpreadAction> KeyMap {get;}
Example
This example uses the KeyMap property.
gcSpreadSheet1.View.KeyMap.Remove(new GrapeCity.Xaml.SpreadSheet.UI.KeyStroke(Windows.System.VirtualKey.Enter, Windows.System.VirtualKeyModifiers.None));
gcSpreadSheet1.View.KeyMap.Add(new GrapeCity.Xaml.SpreadSheet.UI.KeyStroke(Windows.System.VirtualKey.Enter, Windows.System.VirtualKeyModifiers.None), GrapeCity.Xaml.SpreadSheet.UI.SpreadActions.StartEditing);
gcSpreadSheet1.View.KeyMap.Remove(new GrapeCity.Xaml.SpreadSheet.UI.KeyStroke(Windows.System.VirtualKey.Enter, Windows.System.VirtualKeyModifiers.Menu));
gcSpreadSheet1.View.KeyMap.Add(new GrapeCity.Xaml.SpreadSheet.UI.KeyStroke(Windows.System.VirtualKey.M, Windows.System.VirtualKeyModifiers.Control), GrapeCity.Xaml.SpreadSheet.UI.SpreadActions.InputNewLine);
Dim enterKey As New GrapeCity.Xaml.SpreadSheet.UI.KeyStroke(Windows.System.VirtualKey.Enter, Windows.System.VirtualKeyModifiers.None)
gcSpreadSheet1.View.KeyMap.Remove(enterKey)
gcSpreadSheet1.View.KeyMap.Add(enterKey, AddressOf GrapeCity.Xaml.SpreadSheet.UI.SpreadActions.StartEditing)
gcSpreadSheet1.View.KeyMap.Remove(New GrapeCity.Xaml.SpreadSheet.UI.KeyStroke(Windows.System.VirtualKey.Enter, Windows.System.VirtualKeyModifiers.Menu))
gcSpreadSheet1.View.KeyMap.Add(New GrapeCity.Xaml.SpreadSheet.UI.KeyStroke(Windows.System.VirtualKey.M, Windows.System.VirtualKeyModifiers.Control), New GrapeCity.Xaml.SpreadSheet.UI.SpreadAction(AddressOf GrapeCity.Xaml.SpreadSheet.UI.SpreadActions.InputNewLine))
See Also

Reference

SheetView Class
SheetView Members