Interface
IDraggingService

The service supporting the translation of diagram items.

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.Windows.Diagrams.Core.dll

Syntax:

cs-api-definition
public interface IDraggingService

Properties

DragOverShape

Gets the currently drag over shape.

Declaration

cs-api-definition
IDragDropAware DragOverShape { get; }

Property Value

IDragDropAware

The drag over shape.

DraggingModels

Gets the currently dragging models if any.

Declaration

cs-api-definition
IEnumerable<IDiagramItem> DraggingModels { get; }

Property Value

IEnumerable<IDiagramItem>

The dragging models.

IsDragging

Determines whether there's a dragging operation in progress.

Declaration

cs-api-definition
bool IsDragging { get; }

Property Value

bool

Methods

CanDrag(Point)

Determines whether you can drag to the new point.

Declaration

cs-api-definition
bool CanDrag(Point newPoint)

Parameters

newPoint

Point

The new point.

Returns

bool

CompleteDrag()

Completes the drag.

Declaration

cs-api-definition
void CompleteDrag()

CreateAsyncDragCommand(IUndoRedoService, IEnumerable<IDiagramItem>)

Creates the async drag command.

Declaration

cs-api-definition
CompositeAsyncStateCommand CreateAsyncDragCommand(IUndoRedoService undoRedoService, IEnumerable<IDiagramItem> items)

Parameters

undoRedoService

IUndoRedoService

The undo redo service.

items

IEnumerable<IDiagramItem>

The items affected.

Returns

CompositeAsyncStateCommand

Drag(Point)

Drags to the specified new point.

Declaration

cs-api-definition
void Drag(Point newPoint)

Parameters

newPoint

Point

The new point.

InitializeDrag(Point)

Initializes the drag.

Declaration

cs-api-definition
void InitializeDrag(Point point)

Parameters

point

Point

The drag start point.

StartDrag(IEnumerable<IDiagramItem>, Point)

Starts the drag.

Declaration

cs-api-definition
bool StartDrag(IEnumerable<IDiagramItem> models, Point currentPoint)

Parameters

models

IEnumerable<IDiagramItem>

The models.

currentPoint

Point

The current point.

Returns

bool

Events

CompleteDragging

Occurs on drag complete.

Declaration

cs-api-definition
event EventHandler<PositionChangedEventArgs> CompleteDragging

Event Value

EventHandler<PositionChangedEventArgs>

DragEnter

Occurs on drag enter.

Declaration

cs-api-definition
event EventHandler<DragItemsEventArgs> DragEnter

Event Value

EventHandler<DragItemsEventArgs>

DragLeave

Occurs on drag leave.

Declaration

cs-api-definition
event EventHandler<DragItemsEventArgs> DragLeave

Event Value

EventHandler<DragItemsEventArgs>

Dragging

Occurs when dragging.

Declaration

cs-api-definition
event EventHandler<PositionChangedEventArgs> Dragging

Event Value

EventHandler<PositionChangedEventArgs>

Drop

Occurs on drop.

Declaration

cs-api-definition
event EventHandler<DragItemsEventArgs> Drop

Event Value

EventHandler<DragItemsEventArgs>

StartDragging

Occurs on drag start.

Declaration

cs-api-definition
event EventHandler<CancelingPositionChangedEventArgs> StartDragging

Event Value

EventHandler<CancelingPositionChangedEventArgs>