IUIAnimationManager2::CreateAnimationVariable method (uianimation.h)

Creates a new animation variable.

Syntax

HRESULT CreateAnimationVariable(
  [in]          DOUBLE                initialValue,
  [out, retval] IUIAnimationVariable2 **variable
);

Parameters

[in] initialValue

The initial value for the animation variable.

[out, retval] variable

The new animation variable.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. See Windows Animation Error Codes for a list of error codes.

Remarks

The initial value of an animation variable is specified when the variable is created. After an animation variable is created, its value cannot be changed directly; it must be updated through the animation manager.

An animation variable is typically created to represent each visual characteristic that is to be animated. For example, an application might create two animation variables for the X and Y coordinates of an object that can move freely within a window.

Requirements

Requirement Value
Minimum supported client Windows 8, Windows 7 and Platform Update for Windows 7 [desktop apps | UWP apps]
Minimum supported server None supported
Target Platform Windows
Header uianimation.h
DLL UIAnimation.dll

See also

IUIAnimationManager2