GrapeCity.Xaml.SpreadSheet.UI Namespace > KeyStroke Structure > KeyStroke Constructor : KeyStroke Constructor(VirtualKey,VirtualKeyModifiers) |
'Declaration Public Function New( _ ByVal keyCode As VirtualKey, _ ByVal modifiers As VirtualKeyModifiers _ )
'Usage Dim keyCode As VirtualKey Dim modifiers As VirtualKeyModifiers Dim instance As New KeyStroke(keyCode, modifiers)
public KeyStroke( VirtualKey keyCode, VirtualKeyModifiers modifiers )
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