Class
AnimationValueFontCalculator

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

Definition

Namespace:Telerik.WinControls

Assembly:Telerik.WinControls.dll

Syntax:

cs-api-definition
public class AnimationValueFontCalculator : AnimationValueCalculator

Inheritance: objectAnimationValueCalculatorAnimationValueFontCalculator

Inherited Members AnimationValueCalculator.CalculateIntStep(int, int, int)AnimationValueCalculator.CalculateIntStep(int, int, int, int, int)AnimationValueCalculator.CalculateFloatStep(float, float, int)AnimationValueCalculator.CalculateFloatStep(float, float, float, float, float)AnimationValueCalculator.CalculateDoubleStep(double, double, int)AnimationValueCalculator.CalculateDoubleStep(double, double, double, double, double)AnimationValueCalculator.CalculateFloatEndValue(float, float, int)AnimationValueCalculator.CalculateFloatEndValue(float, float, int, float, float)AnimationValueCalculator.CalculateDoubleEndValue(double, double, int)AnimationValueCalculator.CalculateDoubleEndValue(double, double, int, double, double)AnimationValueCalculator.CalculateIntEndValue(int, int, int)AnimationValueCalculator.CalculateIntEndValue(int, int, int, int, int)

Constructors

AnimationValueFontCalculator()

Declaration

cs-api-definition
public AnimationValueFontCalculator()

Properties

AssociatedType

Gets the type associated with this calculator.

Declaration

cs-api-definition
public override Type AssociatedType { get; }

Property Value

Type

The Font type.

Overrides AnimationValueCalculator.AssociatedType

Methods

CalculateAnimatedValue(object, object, object, object, int, int, EasingCalculator)

Calculates the animated font value for the current frame.

Declaration

cs-api-definition
public override object CalculateAnimatedValue(object startValue, object endValue, object currValue, object step, int currFrameNum, int totalFrameNum, EasingCalculator calc)

Parameters

startValue

object

The starting font value.

endValue

object

The ending font value.

currValue

object

The current font value.

step

object

The font animation step.

currFrameNum

int

The current frame number.

totalFrameNum

int

The total number of frames.

calc

EasingCalculator

The easing calculator.

Returns

object

The calculated font for the current frame.

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

CalculateAnimationEndValue(object, object, int)

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

Declaration

cs-api-definition
public override object CalculateAnimationEndValue(object animationStartValue, object animationStep, int numFrames)

Parameters

animationStartValue

object

The starting font.

animationStep

object

The font animation step.

numFrames

int

The number of animation frames.

Returns

object

The calculated end font animation step.

Overrides AnimationValueCalculator.CalculateAnimationEndValue(object, object, int)

CalculateAnimationStep(object, object, int)

Calculates the animation step needed to transition between two fonts.

Declaration

cs-api-definition
public override object CalculateAnimationStep(object animationStartValue, object animationEndValue, int numFrames)

Parameters

animationStartValue

object

The starting font.

animationEndValue

object

The ending font.

numFrames

int

The number of animation frames.

Returns

object

The calculated font animation step.

Overrides AnimationValueCalculator.CalculateAnimationStep(object, object, int)

CalculateInversedStep(object)

Calculates the inverse of a font animation step.

Declaration

cs-api-definition
public override object CalculateInversedStep(object step)

Parameters

step

object

The font step to invert.

Returns

object

The inverted font animation step.

Overrides AnimationValueCalculator.CalculateInversedStep(object)

ConvertAnimationStepToString(object)

Converts a font animation step to its string representation.

Declaration

cs-api-definition
public override string ConvertAnimationStepToString(object value)

Parameters

value

object

The font animation step to convert.

Returns

string

The string representation of the step.

Overrides AnimationValueCalculator.ConvertAnimationStepToString(object)

ConvertToAnimationStepFromString(string)

Converts a string representation to a font animation step.

Declaration

cs-api-definition
public override object ConvertToAnimationStepFromString(string value)

Parameters

value

string

The string value to convert.

Returns

object

The font animation step.

Overrides AnimationValueCalculator.ConvertToAnimationStepFromString(string)