Class AnimationValueFontCalculator
Provides font animation calculations, primarily for animating font size changes.
Inherited Members
Namespace: Telerik.WinControls
Assembly: Telerik.WinControls.dll
Syntax
public class AnimationValueFontCalculator : AnimationValueCalculator
Constructors
AnimationValueFontCalculator()
Declaration
public AnimationValueFontCalculator()
Properties
AssociatedType
Gets the type associated with this calculator.
Declaration
public override Type AssociatedType { get; }
Property Value
System.Type
The System.Drawing.Font type. |
Overrides
Methods
CalculateAnimatedValue(Object, Object, Object, Object, Int32, Int32, EasingCalculator)
Calculates the animated font value for the current frame.
Declaration
public override object CalculateAnimatedValue(object startValue, object endValue, object currValue, object step, int currFrameNum, int totalFrameNum, EasingCalculator calc)
Parameters
System.Object
startValue
The starting font value. |
System.Object
endValue
The ending font value. |
System.Object
currValue
The current font value. |
System.Object
step
The font animation step. |
System.Int32
currFrameNum
The current frame number. |
System.Int32
totalFrameNum
The total number of frames. |
EasingCalculator
calc
The easing calculator. |
Returns
System.Object
The calculated font for the current frame. |
Overrides
CalculateAnimationEndValue(Object, Object, Int32)
Calculates the end font value based on start value and animation step.
Declaration
public override object CalculateAnimationEndValue(object animationStartValue, object animationStep, int numFrames)
Parameters
System.Object
animationStartValue
The starting font. |
System.Object
animationStep
The font animation step. |
System.Int32
numFrames
The number of animation frames. |
Returns
System.Object
The calculated end font animation step. |
Overrides
CalculateAnimationStep(Object, Object, Int32)
Calculates the animation step needed to transition between two fonts.
Declaration
public override object CalculateAnimationStep(object animationStartValue, object animationEndValue, int numFrames)
Parameters
System.Object
animationStartValue
The starting font. |
System.Object
animationEndValue
The ending font. |
System.Int32
numFrames
The number of animation frames. |
Returns
System.Object
The calculated font animation step. |
Overrides
CalculateInversedStep(Object)
Calculates the inverse of a font animation step.
Declaration
public override object CalculateInversedStep(object step)
Parameters
System.Object
step
The font step to invert. |
Returns
System.Object
The inverted font animation step. |
Overrides
ConvertAnimationStepToString(Object)
Converts a font animation step to its string representation.
Declaration
public override string ConvertAnimationStepToString(object value)
Parameters
System.Object
value
The font animation step to convert. |
Returns
System.String
The string representation of the step. |
Overrides
ConvertToAnimationStepFromString(String)
Converts a string representation to a font animation step.
Declaration
public override object ConvertToAnimationStepFromString(string value)
Parameters
System.String
value
The string value to convert. |
Returns
System.Object
The font animation step. |