Routes mouse-wheel and keyboard input to the spreadsheet's active worksheet editor.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.RadSpreadsheet.dll
Syntax:
public class SpreadsheetInputBehavior
Inheritance: objectSpreadsheetInputBehavior
Constructors
Initializes an input behavior for the specified spreadsheet element.
public SpreadsheetInputBehavior(RadSpreadsheetElement spreadsheet)
The element whose worksheet editor receives input.
Properties
Gets the spreadsheet element whose active worksheet editor handles input.
public RadSpreadsheetElement Spreadsheet { get; }
Methods
Sends wheel input to the AI chat panel when the pointer is over it; otherwise scrolls the worksheet, or zooms the worksheet when Control is held.
public virtual bool OnMouseWheel(MouseEventArgs e)
The mouse-wheel event to process.
Returns:true when the visible AI chat panel processes the event; otherwise, the worksheet's result.
Executes the worksheet editor's command for inserting cells.
Clears the contents of the active selection without removing its cells.
Clears the contents of the active selection without removing its cells.
Moves the active selection to the next row.
Moves the active selection to the end of its row.
Moves the active cell to the next or previous row in the selection, depending on whether Shift is pressed.
public virtual void ProcessEnterKey(KeyEventArgs e)
The key event whose Shift state determines the direction.
Moves the active selection to the beginning of its row.
Routes key-down input to the worksheet editor, including spreadsheet navigation, editing, selection, formatting, clipboard, file, and sheet commands.
public virtual void ProcessKeyDown(KeyEventArgs e)
The key and modifier state used to select the command.
Forwards character input to the active worksheet editor when cell editing is available, Control is not the only modifier held, and the character is not Tab, Backspace, vertical tab, or Escape.
public virtual void ProcessKeyPress(KeyPressEventArgs e)
The character input and its event data.
Provides a customization point for key-up processing; the base implementation does not handle the event.
Moves the active selection to the previous column.
Moves the selection down by a page, switches to the sheet on the right when Control is pressed, or moves the selection horizontally by a page when Alt is pressed.
public virtual void ProcessPageDownKey(KeyEventArgs e)
The key event whose modifiers determine the action.
Moves the selection up by a page, switches to the sheet on the left when Control is pressed, or moves the selection horizontally by a page when Alt is pressed.
public virtual void ProcessPageUpKey(KeyEventArgs e)
The key event whose modifiers determine the action.
Moves the active selection to the next column.
Executes the worksheet editor's command for removing cells.
Moves the active cell to the next or previous column in the selection, depending on whether Shift is pressed.
public virtual void ProcessTabKey(KeyEventArgs e)
The key event whose Shift state determines the direction.
Moves the active selection to the previous row.