| Leadtools.Controls Namespace > InteractiveDragCompletedEventArgs Object : Velocity Property |
get_velocity();
set_velocity(value);
Object.defineProperty('velocity');
| Type | Description |
|---|---|
| LeadPointD | The final horizontal and vertical velocity of the drag, if the drag was inertial. |
time_delta = drag_completed_time_stamp - drag_started_time_stamp; // In Milliseconds
veclocity.x = (Position.X - Origin.X) / time_delta;
veclocity.y = (Position.Y - Origin.Y) / time_delta;