←Select platform

DefaultDuration Property

Summary

The time in milliseconds for the default inertia scroll to last.

Syntax
C#
VB
C++
public int DefaultDuration { get; set; } 
Public Property DefaultDuration() As Integer 
   Get 
   Set 
public:  
   property Int32 DefaultDuration 
   { 
      Int32 get() 
      void set(Int32 value) 
   } 

Property Value

An int indicating the duration in milliseconds. The default value is 2500.

Remarks

DefaultCalculateInertia makes use of the values of DefaultBezierPoint1, DefaultBezierPoint2, DefaultDuration, and DefaultPower to return the new inertia scroll offset. The Bézier function is defined by the four points (0,0), DefaultBezierPoint1, DefaultBezierPoint2, (1,1) and defines the percent of total distance for the inertia animation. When the time elapsed (since InertiaParams.ReasonTimestamp) is greater than or equal to DefaultDuration, the inertia scroll will be complete.

Requirements
Target Platforms
Help Version 21.0.2021.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Controls Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.