New to Telerik UI for WinForms? Start a free 30-day trial

Routes mouse-wheel and keyboard input to the spreadsheet's active worksheet editor.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.RadSpreadsheet.dll

Syntax:

C#
public class SpreadsheetInputBehavior

Inheritance: objectSpreadsheetInputBehavior

Constructors

Initializes an input behavior for the specified spreadsheet element.

C#
public SpreadsheetInputBehavior(RadSpreadsheetElement spreadsheet)
Parameters:spreadsheetRadSpreadsheetElement

The element whose worksheet editor receives input.

Properties

Gets the spreadsheet element whose active worksheet editor handles input.

C#
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.

C#
public virtual bool OnMouseWheel(MouseEventArgs e)
Parameters:eMouseEventArgs

The mouse-wheel event to process.

Returns:

bool

true when the visible AI chat panel processes the event; otherwise, the worksheet's result.

Executes the worksheet editor's command for inserting cells.

C#
public virtual void ProcessAddKey(KeyEventArgs e)
Parameters:eKeyEventArgs

Clears the contents of the active selection without removing its cells.

C#
public virtual void ProcessBackKey(KeyEventArgs e)
Parameters:eKeyEventArgs

Clears the contents of the active selection without removing its cells.

C#
public virtual void ProcessDeleteKey(KeyEventArgs e)
Parameters:eKeyEventArgs

Moves the active selection to the next row.

C#
public virtual void ProcessDownKey(KeyEventArgs e)
Parameters:eKeyEventArgs

Moves the active selection to the end of its row.

C#
public virtual void ProcessEndKey(KeyEventArgs e)
Parameters:eKeyEventArgs

Moves the active cell to the next or previous row in the selection, depending on whether Shift is pressed.

C#
public virtual void ProcessEnterKey(KeyEventArgs e)
Parameters:eKeyEventArgs

The key event whose Shift state determines the direction.

Moves the active selection to the beginning of its row.

C#
public virtual void ProcessHomeKey(KeyEventArgs e)
Parameters:eKeyEventArgs

Routes key-down input to the worksheet editor, including spreadsheet navigation, editing, selection, formatting, clipboard, file, and sheet commands.

C#
public virtual void ProcessKeyDown(KeyEventArgs e)
Parameters:eKeyEventArgs

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.

C#
public virtual void ProcessKeyPress(KeyPressEventArgs e)
Parameters:eKeyPressEventArgs

The character input and its event data.

Provides a customization point for key-up processing; the base implementation does not handle the event.

C#
public virtual void ProcessKeyUp(KeyEventArgs e)
Parameters:eKeyEventArgs

Moves the active selection to the previous column.

C#
public virtual void ProcessLeftKey(KeyEventArgs e)
Parameters:eKeyEventArgs

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.

C#
public virtual void ProcessPageDownKey(KeyEventArgs e)
Parameters:eKeyEventArgs

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.

C#
public virtual void ProcessPageUpKey(KeyEventArgs e)
Parameters:eKeyEventArgs

The key event whose modifiers determine the action.

Moves the active selection to the next column.

C#
public virtual void ProcessRightKey(KeyEventArgs e)
Parameters:eKeyEventArgs

Executes the worksheet editor's command for removing cells.

C#
public virtual void ProcessSubtractKey(KeyEventArgs e)
Parameters:eKeyEventArgs

Moves the active cell to the next or previous column in the selection, depending on whether Shift is pressed.

C#
public virtual void ProcessTabKey(KeyEventArgs e)
Parameters:eKeyEventArgs

The key event whose Shift state determines the direction.

Moves the active selection to the previous row.

C#
public virtual void ProcessUpKey(KeyEventArgs e)
Parameters:eKeyEventArgs