Spread Silverlight Documentation
InputNewLine Method
Example 


GrapeCity.Windows.SpreadSheet.UI Namespace > SpreadActions Class : InputNewLine Method
The object to do the action on.
The ActionEventArgs instance that contains the action event data.
Inputs a new line in the current active cell.
Syntax
'Declaration
 
Public Shared Sub InputNewLine( _
   ByVal sender As System.Object, _
   ByVal e As ActionEventArgs _
) 
'Usage
 
Dim sender As System.Object
Dim e As ActionEventArgs
 
SpreadActions.InputNewLine(sender, e)
public static void InputNewLine( 
   System.object sender,
   ActionEventArgs e
)

Parameters

sender
The object to do the action on.
e
The ActionEventArgs instance that contains the action event data.
Example
This example uses the InputNewLine action.
gcSpreadSheet1.View.KeyMap.Remove(new KeyStroke(Key.Enter, ModifierKeys.None));
gcSpreadSheet1.View.KeyMap.Add(new KeyStroke(Key.Enter, ModifierKeys.None), SpreadActions.StartEditing);
gcSpreadSheet1.View.KeyMap.Remove(new KeyStroke(Key.Enter, ModifierKeys.Alt));
gcSpreadSheet1.View.KeyMap.Add(new KeyStroke(Key.M, ModifierKeys.Control), SpreadActions.InputNewLine);
Dim enterKey As New KeyStroke(Key.Enter, ModifierKeys.None)
GcSpreadSheet1.View.KeyMap.Remove(enterKey)
GcSpreadSheet1.View.KeyMap.Add(enterKey, AddressOf SpreadActions.StartEditing)
GcSpreadSheet1.View.KeyMap.Remove(New GrapeCity.Windows.SpreadSheet.UI.KeyStroke(Key.Enter, ModifierKeys.Alt))
GcSpreadSheet1.View.KeyMap.Add(New GrapeCity.Windows.SpreadSheet.UI.KeyStroke(Key.M, ModifierKeys.Control), New GrapeCity.Windows.SpreadSheet.UI.SpreadAction(AddressOf GrapeCity.Windows.SpreadSheet.UI.SpreadActions.InputNewLine))
See Also

Reference

SpreadActions Class
SpreadActions Members