Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Sets the rounding mode of the animation variable.
Syntax
HRESULT SetRoundingMode(
[in] UI_ANIMATION_ROUNDING_MODE mode
);
Parameters
[in] mode
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
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
IUIAnimationVariable2::GetFinalIntegerValue
IUIAnimationVariable2::GetIntegerValue