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

Provides font animation calculations, primarily for animating font size changes.

Definition

Constructors

C#
public AnimationValueFontCalculator()

Properties

Gets the type associated with this calculator.

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

The Font type.

Overrides: AnimationValueCalculator.AssociatedType

Methods

Calculates the animated font 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 font value.

endValueobject

The ending font value.

currValueobject

The current font value.

stepobject

The font animation step.

currFrameNumint

The current frame number.

totalFrameNumint

The total number of frames.

calcEasingCalculator

The easing calculator.

Returns:

object

The calculated font for the current frame.

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

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

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

The starting font.

animationStepobject

The font animation step.

numFramesint

The number of animation frames.

Returns:

object

The calculated end font animation step.

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

Calculates the animation step needed to transition between two fonts.

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

The starting font.

animationEndValueobject

The ending font.

numFramesint

The number of animation frames.

Returns:

object

The calculated font animation step.

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

Calculates the inverse of a font animation step.

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

The font step to invert.

Returns:

object

The inverted font animation step.

Overrides: AnimationValueCalculator.CalculateInversedStep(object)

Converts a font animation step to its string representation.

C#
public override string ConvertAnimationStepToString(object value)
Parameters:valueobject

The font animation step to convert.

Returns:

string

The string representation of the step.

Overrides: AnimationValueCalculator.ConvertAnimationStepToString(object)

Converts a string representation to a font animation step.

C#
public override object ConvertToAnimationStepFromString(string value)
Parameters:valuestring

The string value to convert.

Returns:

object

The font animation step.

Overrides: AnimationValueCalculator.ConvertToAnimationStepFromString(string)