DiagramInputBehavior
Responsible for handling the mouse and the keyboard input from RadDiagram.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.RadDiagram.dll
Syntax:
public class DiagramInputBehavior : IDisposable
Inheritance: objectDiagramInputBehavior
Implements:
Constructors
Creates an input handler that routes mouse and keyboard input to the specified diagram element.
public DiagramInputBehavior(RadDiagramElement diagramElement)
The diagram element that receives the input.
Properties
Gets the diagram element that receives input handled by this behavior.
public virtual RadDiagramElement DiagramElement { get; }
Methods
Clears the reference to the diagram element handled by this behavior.
public void Dispose()
Implements:
Handles the KeyDown event from RadDiagram.
public virtual bool HandleKeyDown(KeyEventArgs e)
The event arguments.
Returns:[true] if the event should not be processed further, [false] otherwise.
Handles the MouseDown event from RadDiagram.
public virtual bool HandleMouseDown(MouseEventArgs e)
The event arguments.
Returns:[true] if the event should not be processed further, [false] otherwise.
Handles the MouseMove event from RadDiagram.
public virtual bool HandleMouseMove(MouseEventArgs e)
The event arguments.
Returns:[true] if the event should not be processed further, [false] otherwise.
Handles the MouseUp event from RadDiagram.
public virtual bool HandleMouseUp(MouseEventArgs e)
The event arguments.
Returns:[true] if the event should not be processed further, [false] otherwise.
Determines whether the element is part of a connection edit-point control.
protected virtual bool IsConnector(RadElement element)
The element to inspect.
Returns: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.
protected virtual bool IsElementEditor(RadElement element)
The element under the pointer or keyboard focus.
Returns:Determines whether the element is a scrollbar or one of its descendants.
protected virtual bool IsScrollBar(RadElement element)
The element to inspect.
Returns:true if the element belongs to a scrollbar; otherwise, false.