Skip to main content
IUIAnimationVariable2::SetRoundingMode method

Sets the rounding mode of the animation variable.

Syntax


HRESULT SetRoundingMode(
  [in]  UI_ANIMATION_ROUNDING_MODE mode
);

Parameters

mode [in]

The rounding mode.

Return value

Returns S_OK if successful; otherwise an HRESULT error code. See Windows Animation Error Codes for a list of error codes.

Remarks

An animation variable's rounding mode determines how a floating-point value is converted to an integer. The default mode for each variable is UI_ANIMATION_ROUNDING_NEAREST.

Requirements

Minimum supported client

Windows 8, Windows 7 and Platform Update for Windows 7 [desktop apps | Windows Store apps]

Minimum supported server

None supported [desktop apps | Windows Store apps]

Header

UIAnimation.h

IDL

UIAnimation.idl

DLL

UIAnimation.dll

IID

IID_IUIAnimationVariable2 is defined as 4914B304-96AB-44d9-9E77-D5109B7E7466

See also

IUIAnimationVariable2
IUIAnimationVariable2::GetFinalIntegerValue
IUIAnimationVariable2::GetIntegerValue
IUIAnimationVariable2::GetPreviousIntegerValue
UI_ANIMATION_ROUNDING_MODE