Version

TaskElementDragging Event

Fired during the course of a drag operation for a Task element.
Syntax
'Declaration
 
Public Event TaskElementDragging As TaskElementDraggingHandler
public event TaskElementDraggingHandler TaskElementDragging
Event Data

The event handler receives an argument of type TaskElementDraggingEventArgs containing data related to this event. The following TaskElementDraggingEventArgs properties provide information specific to this event.

PropertyDescription
Cancel (Inherited from System.ComponentModel.CancelEventArgs) 
DateTime Returns the date and time corresponding to the current drag position.
DragIncrement Returns or sets a boolean value which determines the increment for each movement of the drag operation.
DragType Returns a constant which identifies the task property that is changed by the drag operation.
OriginalDeadline Returns the value of the task's Deadline at the time the drag operation was initiated.
OriginalDuration Returns the value of the task's Duration at the time the drag operation was initiated.
OriginalPercentComplete Returns the value of the task's PercentComplete at the time the drag operation was initiated.
OriginalStart Returns the value of the task's StartDateTime at the time the drag operation was initiated.
Phase Returns a constant which identifies the phase of the drag operation.
Task Returns the Task for which the event was fired.
Remarks

The constituent parts of a task, such as the start/end indicators, the main bar, the percent complete indicator, and the deadline indicator, can be dragged separately by the user to change the value of the associated task property. The TaskElementDragging event provides a notificatin during the different phases of this operation.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also