API Documentation -> NtTimeChartControl -> beginObjectDragging

# NtTimeChartControl.beginObjectDragging Event

This event is being raised when users start dragging an object. You can catch and cancel this event in order to prohibit the dragging. In this case the obect(s) remain in their position.
In your event handler you can use the NtObjectDraggingEventArgs's member draggedDataObjects to find out which objects are being dragged.

Overload List:

Event Name | Event Arguments | Description
--- | --- | ---
beginObjectDragging | NtObjectDraggingEventArgs | Event raised when users start dragging an object.

Event Arguments:

NtObjectDraggingEventArgs
The member draggedDataObjects contains a List<NtDataObject> of all the objects that are currently selected and thereby take part on the dragging.
The member timeDeltaTicks is always zero for this event. You can call the event's Cancel() method to cancel this event. In this case the object dragging will be cancelled and all the objects remain in their position.

Remarks:

As you recieve the list of objects being dragged, you can decide individually in your event handler if you want to approve the dragging or not.

See also:

endObjectDragging
continueObjectDragging
NtObjectDraggingEventArgs

Top API Documentation -> NtTimeChartControl -> beginObjectDragging © 2016 Bassaly