GrapeCity.Xaml.SpreadSheet.UI Namespace > SheetView Class : KeyMap Property |
'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;}
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))
Target Platforms: Windows Server 2012, Windows RT