New to Telerik UI for WinFormsStart a free 30-day trial

Provides integer value animation calculations with smooth interpolation between start and end values.

Definition

Constructors

C#
public AnimationValueIntCalculator()

Properties

Gets the type associated with this calculator.

C#
public override Type AssociatedType { get; }
Property Value:

The int type.

Overrides: AnimationValueCalculator.AssociatedType

Methods

Calculates the animated integer value for the current frame.

C#
public override object CalculateAnimatedValue(object startValue, object endValue, object currValue, object step, int currFrameNum, int totalFrameNum, EasingCalculator calc)
Parameters:startValueobject

The starting integer value.

endValueobject

The ending integer value.

currValueobject

The current integer value.

stepobject

The animation step value.

currFrameNumint

The current frame number.

totalFrameNumint

The total number of frames.

calcEasingCalculator

The easing calculator.

Returns:

object

The calculated integer value for the current frame.

Overrides: AnimationValueCalculator.CalculateAnimatedValue(object, object, object, object, int, int, EasingCalculator)

Calculates the end integer value based on start value and animation step.

C#
public override object CalculateAnimationEndValue(object animationStartValue, object animationStep, int numFrames)
Parameters:animationStartValueobject

The starting integer value.

animationStepobject

The integer animation step.

numFramesint

The number of animation frames.

Returns:

object

The calculated end integer value.

Overrides: AnimationValueCalculator.CalculateAnimationEndValue(object, object, int)

Calculates the animation step needed to transition between two integer values.

C#
public override object CalculateAnimationStep(object animationStartValue, object animationEndValue, int numFrames)
Parameters:animationStartValueobject

The starting integer value.

animationEndValueobject

The ending integer value.

numFramesint

The number of animation frames.

Returns:

object

The calculated integer animation step.

Overrides: AnimationValueCalculator.CalculateAnimationStep(object, object, int)

Calculates the inverse of an integer animation step.

C#
public override object CalculateInversedStep(object step)
Parameters:stepobject

The integer step to invert.

Returns:

object

The inverted integer step.

Overrides: AnimationValueCalculator.CalculateInversedStep(object)