Routes component-level mouse input to a spreadsheet while avoiding duplicate worksheet handling for interactions with its scrollbar, sheet selector, status bar, drop-down arrows, and AI chat panel.
Definition
Namespace:Telerik.WinControls.Spreadsheet.UI
Assembly:Telerik.WinControls.RadSpreadsheet.dll
Syntax:
public class RadSpreadsheetComponentInputBehavior : ComponentInputBehavior, IDisposable
Inheritance: objectComponentBehaviorComponentInputBehaviorRadSpreadsheetComponentInputBehavior
Implements:
Inherited Members
Constructors
Initializes the behavior for the component tree owned by a RadSpreadsheet.
public RadSpreadsheetComponentInputBehavior(IComponentTreeHandler owner)
The spreadsheet control whose component tree receives input.
Methods
Determines whether the visible AI chat panel contains the pointer.
protected virtual bool IsMouseOverAiChatElement(MouseEventArgs e)
The mouse event containing the pointer location.
Returns:true if the visible chat element contains the pointer; otherwise, false.
Determines whether the pointer is over a drop-down list's arrow button.
protected virtual bool IsMouseOverDropDownList(MouseEventArgs e)
The mouse event containing the pointer location.
Returns:true if the pointer is over a drop-down arrow; otherwise, false.
Determines whether the pointer is within the vertical scrollbar or sheet-selector bounds.
protected virtual bool IsMouseOverScrollbar(MouseEventArgs e)
The mouse event containing the pointer location.
Returns:true if the pointer is over either region; otherwise, false.
Determines whether the pointer is within the spreadsheet status-bar bounds.
protected virtual bool IsMouseOverStatusbar(MouseEventArgs e)
The mouse event containing the pointer location.
Returns:true if the pointer is over the status bar; otherwise, false.
Routes click input to the element under the pointer, invoking drop-down arrows directly and leaving AI-chat clicks to the chat element.
Ends sheet-selector editing and routes the press to the base behavior, marking clicks on spreadsheet child controls as handled so they are not also treated as worksheet input.
public override bool OnMouseDown(MouseEventArgs e)
The mouse-down event and pointer location.
Returns:true when the event has been marked handled.
Overrides:
Routes movement to the base behavior while preventing worksheet handling during scrollbar interaction and restoring the default cursor over the scrollbar area.
public override bool OnMouseMove(MouseEventArgs e)
The mouse-move event and pointer location.
Returns:true when the event is marked handled.
Overrides:
Routes release input to the base behavior and suppresses worksheet handling for scrollbar interactions when the spreadsheet has not captured the pointer or its capture belongs to a scrollbar.
public override bool OnMouseUp(MouseEventArgs e)
The mouse-up event and pointer location.
Returns:true when the event is marked handled.
Overrides:
Wraps the wheel event in the spreadsheet's mouse-event type before routing it to the base behavior.
public override bool OnMouseWheel(MouseEventArgs e)
The mouse-wheel event.
Returns:The result returned by the base component input behavior.
Overrides: