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

Responsible for handling the mouse and the keyboard input from RadDiagram.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.RadDiagram.dll

Syntax:

C#
public class DiagramInputBehavior : IDisposable

Inheritance: objectDiagramInputBehavior

Implements: IDisposable

Constructors

Creates an input handler that routes mouse and keyboard input to the specified diagram element.

C#
public DiagramInputBehavior(RadDiagramElement diagramElement)
Parameters:diagramElementRadDiagramElement

The diagram element that receives the input.

Properties

Gets the diagram element that receives input handled by this behavior.

C#
public virtual RadDiagramElement DiagramElement { get; }

Methods

Clears the reference to the diagram element handled by this behavior.

C#
public void Dispose()

Implements: IDisposable.Dispose()

Handles the KeyDown event from RadDiagram.

C#
public virtual bool HandleKeyDown(KeyEventArgs e)
Parameters:eKeyEventArgs

The event arguments.

Returns:

bool

[true] if the event should not be processed further, [false] otherwise.

Handles the MouseDown event from RadDiagram.

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

The event arguments.

Returns:

bool

[true] if the event should not be processed further, [false] otherwise.

Handles the MouseMove event from RadDiagram.

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

The event arguments.

Returns:

bool

[true] if the event should not be processed further, [false] otherwise.

Handles the MouseUp event from RadDiagram.

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

The event arguments.

Returns:

bool

[true] if the event should not be processed further, [false] otherwise.

Determines whether the element is part of a connection edit-point control.

C#
protected virtual bool IsConnector(RadElement element)
Parameters:elementRadElement

The element to inspect.

Returns:

bool

true if the element is within a connection edit-point control; otherwise, false.

Determines whether the element is a text editor that should handle input instead of the diagram.

C#
protected virtual bool IsElementEditor(RadElement element)
Parameters:elementRadElement

The element under the pointer or keyboard focus.

Returns:

bool

true for a text-box element; otherwise, false.

Determines whether the element is a scrollbar or one of its descendants.

C#
protected virtual bool IsScrollBar(RadElement element)
Parameters:elementRadElement

The element to inspect.

Returns:

bool

true if the element belongs to a scrollbar; otherwise, false.