FadingPainterTStateGetSpeed Method

Gets the speed of the fading animation between the two specified states. When not overridden, the host's GetFadingAnimationSpeed is requested. If that returns a negative value, FadingAnimationDefaultSpeed is used.

Definition

Namespace: KGySoft.WinForms.Controls
Assembly: KGySoft.WinForms (in KGySoft.WinForms.dll) Version: 5.0.1
C#
protected virtual int GetSpeed(
	TState prevState,
	TState newState
)

Parameters

prevState  TState
Previous state.
newState  TState
New state.

Return Value

Int32
An integer value representing animation speed in milliseconds.

See Also