skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class DraggingService

Represents the Dragging service responsible for dragging operations in Diagram.

Inheritance
System.Object
GraphServiceBase
DraggingService
Inherited Members
GraphServiceBase.Graph
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
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
IDraggingService.DraggingModels

DragOverShape

Gets the currently drag over shape.

Declaration
public IDragDropAware DragOverShape { get; }
Property Value
IDragDropAware

The drag over shape.

Implements
IDraggingService.DragOverShape

IsDragging

Determines whether there's a dragging operation in progress.

Declaration
public bool IsDragging { get; }
Property Value
System.Boolean

Implements
IDraggingService.IsDragging

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
IDraggingService.CanDrag(Point)

CompleteDrag()

Completes the drag.

Declaration
public virtual void CompleteDrag()
Implements
IDraggingService.CompleteDrag()

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
IDraggingService.CreateAsyncDragCommand(IUndoRedoService, IEnumerable<IDiagramItem>)

Drag(Point)

Drags to the specified new point.

Declaration
public virtual void Drag(Point newPoint)
Parameters
Point newPoint

The new point.

Implements
IDraggingService.Drag(Point)

InitializeDrag(Point)

Initializes the drag.

Declaration
public virtual void InitializeDrag(Point point)
Parameters
Point point

The drag start point.

Implements
IDraggingService.InitializeDrag(Point)

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
IDraggingService.StartDrag(IEnumerable<IDiagramItem>, Point)

Events

CompleteDragging

Occurs on drag complete.

Declaration
public event EventHandler<PositionChangedEventArgs> CompleteDragging
Event Type
System.EventHandler<PositionChangedEventArgs>

Implements
IDraggingService.CompleteDragging

DragEnter

Occurs on drag enter.

Declaration
public event EventHandler<DragItemsEventArgs> DragEnter
Event Type
System.EventHandler<DragItemsEventArgs>

Implements
IDraggingService.DragEnter

Dragging

Occurs when dragging.

Declaration
public event EventHandler<PositionChangedEventArgs> Dragging
Event Type
System.EventHandler<PositionChangedEventArgs>

Implements
IDraggingService.Dragging

DragLeave

Occurs on drag leave.

Declaration
public event EventHandler<DragItemsEventArgs> DragLeave
Event Type
System.EventHandler<DragItemsEventArgs>

Implements
IDraggingService.DragLeave

Drop

Occurs on drop.

Declaration
public event EventHandler<DragItemsEventArgs> Drop
Event Type
System.EventHandler<DragItemsEventArgs>

Implements
IDraggingService.Drop

StartDragging

Occurs on drag start.

Declaration
public event EventHandler<CancelingPositionChangedEventArgs> StartDragging
Event Type
System.EventHandler<CancelingPositionChangedEventArgs>

Implements
IDraggingService.StartDragging

Extension Methods

SvgExtentions.Traverse<T>(T, Func<T, IEnumerable<T>>)
SvgExtentions.TraverseDepthFirst<T>(T, Func<T, IEnumerable<T>>)
Getting Started
  • Install Now
  • Demos
  • Step-by-Step Tutorial
  • Sample Applications
  • SDK Samples
  • Visual Studio Extensions
Support Resources
  • Code Library
  • Knowledge Base
  • Videos
Community
  • Forums
  • Blogs
  • Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.