Interface IDraggingService
The service supporting the translation of diagram items.
Namespace: Telerik.Windows.Diagrams.Core
Assembly: Telerik.WinControls.RadDiagram.dll
Syntax
public interface IDraggingService
Remarks
Note that this service can be customized and plugged into the ServiceLocator.
Properties
DraggingModels
Gets the currently dragging models if any.
Declaration
IEnumerable<IDiagramItem> DraggingModels { get; }
Property Value
System.Collections.Generic.IEnumerable<IDiagramItem>
The dragging models. |
DragOverShape
Gets the currently drag over shape.
Declaration
IDragDropAware DragOverShape { get; }
Property Value
IDragDropAware
The drag over shape. |
IsDragging
Determines whether there's a dragging operation in progress.
Declaration
bool IsDragging { get; }
Property Value
System.Boolean
|
Methods
CanDrag(Point)
Determines whether you can drag to the new point.
Declaration
bool CanDrag(Point newPoint)
Parameters
Point
newPoint
The new point. |
Returns
System.Boolean
|
CompleteDrag()
Completes the drag.
Declaration
void CompleteDrag()
CreateAsyncDragCommand(IUndoRedoService, IEnumerable<IDiagramItem>)
Creates the async drag command.
Declaration
CompositeAsyncStateCommand CreateAsyncDragCommand(IUndoRedoService undoRedoService, IEnumerable<IDiagramItem> items)
Parameters
IUndoRedoService
undoRedoService
The undo redo service. |
System.Collections.Generic.IEnumerable<IDiagramItem>
items
The items affected. |
Returns
CompositeAsyncStateCommand
|
Drag(Point)
Drags to the specified new point.
Declaration
void Drag(Point newPoint)
Parameters
Point
newPoint
The new point. |
InitializeDrag(Point)
Initializes the drag.
Declaration
void InitializeDrag(Point point)
Parameters
Point
point
The drag start point. |
StartDrag(IEnumerable<IDiagramItem>, Point)
Starts the drag.
Declaration
bool StartDrag(IEnumerable<IDiagramItem> models, Point currentPoint)
Parameters
System.Collections.Generic.IEnumerable<IDiagramItem>
models
The models. |
Point
currentPoint
The current point. |
Returns
System.Boolean
|
Events
CompleteDragging
Occurs on drag complete.
Declaration
event EventHandler<PositionChangedEventArgs> CompleteDragging
Event Type
System.EventHandler<PositionChangedEventArgs>
|
DragEnter
Occurs on drag enter.
Declaration
event EventHandler<DragItemsEventArgs> DragEnter
Event Type
System.EventHandler<DragItemsEventArgs>
|
Dragging
Occurs when dragging.
Declaration
event EventHandler<PositionChangedEventArgs> Dragging
Event Type
System.EventHandler<PositionChangedEventArgs>
|
DragLeave
Occurs on drag leave.
Declaration
event EventHandler<DragItemsEventArgs> DragLeave
Event Type
System.EventHandler<DragItemsEventArgs>
|
Drop
Occurs on drop.
Declaration
event EventHandler<DragItemsEventArgs> Drop
Event Type
System.EventHandler<DragItemsEventArgs>
|
StartDragging
Occurs on drag start.
Declaration
event EventHandler<CancelingPositionChangedEventArgs> StartDragging
Event Type
System.EventHandler<CancelingPositionChangedEventArgs>
|