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

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:

C#
public class RadSpreadsheetComponentInputBehavior : ComponentInputBehavior, IDisposable

Inheritance: objectComponentBehaviorComponentInputBehaviorRadSpreadsheetComponentInputBehavior

Implements: IDisposable

Inherited Members ComponentInputBehavior.OnMouseCaptureChanged(EventArgs)ComponentInputBehavior.OnMouseEnter(EventArgs)ComponentInputBehavior.OnMouseLeave(EventArgs)ComponentInputBehavior.OnMouseHover(EventArgs)ComponentInputBehavior.HandleMouseLeave(EventArgs)ComponentInputBehavior.HandleMouseLeave(EventArgs, RadElement)ComponentInputBehavior.OnGesture(GestureEventArgs)ComponentInputBehavior.Dispose(bool)ComponentInputBehavior.GetHoveredRadElement()ComponentInputBehavior.OnHoveredElementChanged(HoveredElementChangedEventArgs)ComponentInputBehavior.EnableComponentInputBehavior.MouseHoverTimerComponentInputBehavior.HoveredElementChangedComponentBehavior.ItemCaptureStateComponentBehavior.Dispose()ComponentBehavior.GetActivatedItem(Control, char)ComponentBehavior.GetActivatedItem(RadElement, char)ComponentBehavior.ProcessMnemonic(char)ComponentBehavior.GetThemedChildControlsList(Control, List<Control>)ComponentBehavior.GetValidChildControlByMnemonic(List<Control>, char)ComponentBehavior.GetMnemonicText(string)ComponentBehavior.ProcessMnemonicChar(char)ComponentBehavior.OnGotFocus(EventArgs)ComponentBehavior.OnLostFocus(EventArgs)ComponentBehavior.IsFocusWithin(RadElement)ComponentBehavior.SetElementValue(RadElement, RadProperty, object)ComponentBehavior.HideScreenTip()ComponentBehavior.DisposeKeyTips()ComponentBehavior.SetKeyMap()ComponentBehavior.InitializeKeyMap()ComponentBehavior.ResetKeyMap()ComponentBehavior.ResetKeyMapInternal()ComponentBehavior.GetKeyMapFocus()ComponentBehavior.SetInternalKeyMapFocus()ComponentBehavior.ReturnKeyMapFocus()ComponentBehavior.OnEnableKeyTipsChanged()ComponentBehavior.InitializeAdornerLayer()ComponentBehavior.DisposeAdornerLayer()ComponentBehavior.GetRootItems()ComponentBehavior.ActivateSelectedItem(RadItem)ComponentBehavior.ProcessUnmappedItems(List<RadItem>)ComponentBehavior.IsIndexOfItemKeyTip(RadItem, string)ComponentBehavior.IsExactMatch(RadItem, string)ComponentBehavior.IsPartOfKeyTip(Keys, string)ComponentBehavior.GetCurrentKeyMap(RadItem)ComponentBehavior.GetKeyFocusChildren(RadItem)ComponentBehavior.GetKeyStringRepresentation(Keys)ComponentBehavior.FocusedElementComponentBehavior.AllowShowFocusCuesComponentBehavior.ToolTipComponentBehavior.ToolTipOffsetYComponentBehavior.ToolTipOffsetXComponentBehavior.DefaultShowItemToolTipsComponentBehavior.ShowItemToolTipsComponentBehavior.ShowScreenTipsBellowControlComponentBehavior.CommandBindingsComponentBehavior.IsParentFormActiveComponentBehavior.EnableKeyMapComponentBehavior.MouseOverComponentBehavior.OwnerComponentBehavior.OwnerControlComponentBehavior.SelectedElementComponentBehavior.BitmapRepository...

Constructors

Initializes the behavior for the component tree owned by a RadSpreadsheet.

C#
public RadSpreadsheetComponentInputBehavior(IComponentTreeHandler owner)
Parameters:ownerIComponentTreeHandler

The spreadsheet control whose component tree receives input.

Methods

Determines whether the visible AI chat panel contains the pointer.

C#
protected virtual bool IsMouseOverAiChatElement(MouseEventArgs e)
Parameters:eMouseEventArgs

The mouse event containing the pointer location.

Returns:

bool

true if the visible chat element contains the pointer; otherwise, false.

Determines whether the pointer is over a drop-down list's arrow button.

C#
protected virtual bool IsMouseOverDropDownList(MouseEventArgs e)
Parameters:eMouseEventArgs

The mouse event containing the pointer location.

Returns:

bool

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.

C#
protected virtual bool IsMouseOverScrollbar(MouseEventArgs e)
Parameters:eMouseEventArgs

The mouse event containing the pointer location.

Returns:

bool

true if the pointer is over either region; otherwise, false.

Determines whether the pointer is within the spreadsheet status-bar bounds.

C#
protected virtual bool IsMouseOverStatusbar(MouseEventArgs e)
Parameters:eMouseEventArgs

The mouse event containing the pointer location.

Returns:

bool

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.

C#
public override bool OnClick(EventArgs e)
Parameters:eEventArgs

The click event data.

Returns:

bool

false; this behavior does not claim the click as handled.

Overrides: ComponentInputBehavior.OnClick(EventArgs)

Routes double-click input to the element under the pointer, leaving AI-chat interactions to the chat element.

C#
public override bool OnDoubleClick(EventArgs e)
Parameters:eEventArgs

The double-click event data.

Returns:

bool

false; this behavior does not claim the double-click as handled.

Overrides: ComponentInputBehavior.OnDoubleClick(EventArgs)

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.

C#
public override bool OnMouseDown(MouseEventArgs e)
Parameters:eMouseEventArgs

The mouse-down event and pointer location.

Returns:

bool

true when the event has been marked handled.

Overrides: ComponentInputBehavior.OnMouseDown(MouseEventArgs)

Routes movement to the base behavior while preventing worksheet handling during scrollbar interaction and restoring the default cursor over the scrollbar area.

C#
public override bool OnMouseMove(MouseEventArgs e)
Parameters:eMouseEventArgs

The mouse-move event and pointer location.

Returns:

bool

true when the event is marked handled.

Overrides: ComponentInputBehavior.OnMouseMove(MouseEventArgs)

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.

C#
public override bool OnMouseUp(MouseEventArgs e)
Parameters:eMouseEventArgs

The mouse-up event and pointer location.

Returns:

bool

true when the event is marked handled.

Overrides: ComponentInputBehavior.OnMouseUp(MouseEventArgs)

Wraps the wheel event in the spreadsheet's mouse-event type before routing it to the base behavior.

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

The mouse-wheel event.

Returns:

bool

The result returned by the base component input behavior.

Overrides: ComponentInputBehavior.OnMouseWheel(MouseEventArgs)