Class DraggingService
Represents the Dragging service responsible for dragging operations in Diagram.
Inherited Members
Namespace: Telerik.Windows.Diagrams.Core
Assembly: Telerik.WinControls.RadDiagram.dll
Syntax
public class DraggingService : GraphServiceBase, IDraggingService
Constructors
DraggingService(IGraphInternal)
Initializes a new instance of the DraggingService class.
Declaration
public DraggingService(IGraphInternal graph)
Parameters
IGraphInternal
graph
The graph. |
Properties
DraggingModels
Gets the currently dragging models if any.
Declaration
public IEnumerable<IDiagramItem> DraggingModels { get; }
Property Value
System.Collections.Generic.IEnumerable<IDiagramItem>
The dragging models. |
Implements
DragOverShape
Gets the currently drag over shape.
Declaration
public IDragDropAware DragOverShape { get; }
Property Value
IDragDropAware
The drag over shape. |
Implements
IsDragging
Determines whether there's a dragging operation in progress.
Declaration
public bool IsDragging { get; }
Property Value
System.Boolean
|
Implements
Methods
CanDrag(Point)
Determines whether you can drag to the new point.
Declaration
public virtual bool CanDrag(Point newPoint)
Parameters
Point
newPoint
The new point. |
Returns
System.Boolean
|
Implements
CompleteDrag()
Completes the drag.
Declaration
public virtual void CompleteDrag()
Implements
CreateAsyncDragCommand(IUndoRedoService, IEnumerable<IDiagramItem>)
Creates the async drag command which has to be completed at a later time. This method is used both by the Nudge keyboard handler and by the dragging tool.
Declaration
public CompositeAsyncStateCommand CreateAsyncDragCommand(IUndoRedoService undoRedoService, IEnumerable<IDiagramItem> items)
Parameters
IUndoRedoService
undoRedoService
The undo-redo service. |
System.Collections.Generic.IEnumerable<IDiagramItem>
items
The items which are affected. |
Returns
CompositeAsyncStateCommand
The undoable async command. |
Implements
Drag(Point)
Drags to the specified new point.
Declaration
public virtual void Drag(Point newPoint)
Parameters
Point
newPoint
The new point. |
Implements
InitializeDrag(Point)
Initializes the drag.
Declaration
public virtual void InitializeDrag(Point point)
Parameters
Point
point
The drag start point. |
Implements
StartDrag(IEnumerable<IDiagramItem>, Point)
Starts the drag.
Declaration
public virtual bool StartDrag(IEnumerable<IDiagramItem> models, Point currentPoint)
Parameters
System.Collections.Generic.IEnumerable<IDiagramItem>
models
The models. |
Point
currentPoint
The current point. |
Returns
System.Boolean
|
Implements
Events
CompleteDragging
Occurs on drag complete.
Declaration
public event EventHandler<PositionChangedEventArgs> CompleteDragging
Event Type
System.EventHandler<PositionChangedEventArgs>
|
Implements
DragEnter
Occurs on drag enter.
Declaration
public event EventHandler<DragItemsEventArgs> DragEnter
Event Type
System.EventHandler<DragItemsEventArgs>
|
Implements
Dragging
Occurs when dragging.
Declaration
public event EventHandler<PositionChangedEventArgs> Dragging
Event Type
System.EventHandler<PositionChangedEventArgs>
|
Implements
DragLeave
Occurs on drag leave.
Declaration
public event EventHandler<DragItemsEventArgs> DragLeave
Event Type
System.EventHandler<DragItemsEventArgs>
|
Implements
Drop
Occurs on drop.
Declaration
public event EventHandler<DragItemsEventArgs> Drop
Event Type
System.EventHandler<DragItemsEventArgs>
|
Implements
StartDragging
Occurs on drag start.
Declaration
public event EventHandler<CancelingPositionChangedEventArgs> StartDragging
Event Type
System.EventHandler<CancelingPositionChangedEventArgs>
|