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

Routes mouse input for RadSyntaxEditor, separating editor content from its scrollbars and zoom selector.

Definition

Namespace:Telerik.WinControls.UI.SyntaxEditor

Assembly:Telerik.WinControls.SyntaxEditor.dll

Syntax:

C#
public class RadSyntaxEditorComponentInputBehavior : ComponentInputBehavior, IDisposable

Inheritance: objectComponentBehaviorComponentInputBehaviorRadSyntaxEditorComponentInputBehavior

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 input routing for the owning control tree.

C#
public RadSyntaxEditorComponentInputBehavior(IComponentTreeHandler owner)
Parameters:ownerIComponentTreeHandler

The component tree that receives input. Special scrollbar and zoom hit testing is applied when it belongs to a RadSyntaxEditor.

Methods

Determines whether the pointer is within the zoom selector's control bounds.

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

Mouse input containing the pointer location.

Returns:

bool

true when the pointer is over the zoom selector.

Determines whether the pointer is within either scrollbar's control bounds.

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

Mouse input containing the pointer location.

Returns:

bool

true when the pointer is over the horizontal or vertical scrollbar.

Routes clicks on editor elements through the base behavior and dispatches clicks outside the element tree to the hit or captured element.

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

The click event data.

Returns:

bool

The result from the base behavior when it handles an editor element or the zoom selector; otherwise, false.

Overrides: ComponentInputBehavior.OnClick(EventArgs)

Routes double-clicks on editor elements through the base behavior and dispatches double-clicks outside the element tree to the hit or captured element.

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

The double-click event data.

Returns:

bool

The result from the base behavior when it handles an editor element; otherwise, false.

Overrides: ComponentInputBehavior.OnDoubleClick(EventArgs)

Preserves element-tree handling for hits on editor elements and marks scrollbar hits outside that tree as handled.

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

Mouse input containing the pointer location.

Returns:

bool

true if the base behavior or scrollbar handling consumes the input.

Overrides: ComponentInputBehavior.OnMouseDown(MouseEventArgs)

Keeps scrollbar movement outside the editor element tree from being treated as editor-content movement.

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

Mouse input containing the pointer location.

Returns:

bool

true if the base behavior or scrollbar handling consumes the input.

Overrides: ComponentInputBehavior.OnMouseMove(MouseEventArgs)

Prevents scrollbar release input outside the editor element tree from reaching editor content.

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

Mouse input containing the pointer location.

Returns:

bool

true if the base behavior or scrollbar handling consumes the input.

Overrides: ComponentInputBehavior.OnMouseUp(MouseEventArgs)

Routes the wheel event to the focused element, or to the selected element when none is focused.

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

The mouse-wheel event data.

Returns:

bool

false so the control continues its standard event processing.

Overrides: ComponentInputBehavior.OnMouseWheel(MouseEventArgs)