New to Telerik UI for WinFormsStart a free 30-day trial

The service supporting the translation of diagram items.

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.WinControls.RadDiagram.dll

Syntax:

C#
public interface IDraggingService

Derived Classes: DraggingService

Properties

Gets the currently dragging models if any.

C#
IEnumerable<IDiagramItem> DraggingModels { get; }
Property Value:

The dragging models.

Gets the currently drag over shape.

C#
IDragDropAware DragOverShape { get; }
Property Value:

The drag over shape.

Determines whether there's a dragging operation in progress.

C#
bool IsDragging { get; }

Methods

Determines whether you can drag to the new point.

C#
bool CanDrag(Point newPoint)
Parameters:newPointPoint

The new point.

Returns:

bool

Completes the drag.

C#
void CompleteDrag()

Creates the async drag command.

C#
CompositeAsyncStateCommand CreateAsyncDragCommand(IUndoRedoService undoRedoService, IEnumerable<IDiagramItem> items)
Parameters:undoRedoServiceIUndoRedoService

The undo redo service.

itemsIEnumerable<IDiagramItem>

The items affected.

Returns:

CompositeAsyncStateCommand

Drags to the specified new point.

C#
void Drag(Point newPoint)
Parameters:newPointPoint

The new point.

Initializes the drag.

C#
void InitializeDrag(Point point)
Parameters:pointPoint

The drag start point.

Starts the drag.

C#
bool StartDrag(IEnumerable<IDiagramItem> models, Point currentPoint)
Parameters:modelsIEnumerable<IDiagramItem>

The models.

currentPointPoint

The current point.

Returns:

bool

Events

Occurs on drag complete.

C#
event EventHandler<PositionChangedEventArgs> CompleteDragging

Occurs on drag enter.

C#
event EventHandler<DragItemsEventArgs> DragEnter

Occurs when dragging.

C#
event EventHandler<PositionChangedEventArgs> Dragging

Occurs on drag leave.

C#
event EventHandler<DragItemsEventArgs> DragLeave

Occurs on drop.

C#
event EventHandler<DragItemsEventArgs> Drop

Occurs on drag start.

C#
event EventHandler<CancelingPositionChangedEventArgs> StartDragging