←Select platform

Velocity Property

Summary

Gets or sets the final horizontal and vertical velocity of the drag, if the drag was inertial.

Syntax

C#
VB
WinRT C#
public Point Velocity {get; set;} 
Public Property Velocity As Point 
public Point Velocity {get; set;} 
  
get_Velocity(); 
set_Velocity(value); 
Object.defineProperty('Velocity');  

Property Value

The final horizontal and vertical velocity of the drag, if the drag was inertial.

Remarks

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; 

Requirements

Target Platforms

Help Version 19.0.2017.10.28
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Controls Assembly (WinRT / WPF / iOS / OS X / Android)