IUIAnimationVariable::GetIntegerValue 方法 (uianimation.h)

以整数形式获取动画变量的当前值。

语法

HRESULT GetIntegerValue(
  [out] INT32 *value
);

参数

[out] value

动画变量的当前值,已转换为 INT32 值。

返回值

如果该方法成功,则它会返回 S_OK。 否则,将返回 HRESULT 错误代码。 有关错误代码列表,请参阅 Windows 动画 错误代码。

注解

若要指定转换值时要使用的舍入模式,请使用 IUIAnimationVariable::SetRoundingMode 方法。

结果也可能分别受 IUIAnimationVariable::SetLowerBoundIUIAnimationVariable::SetUpperBound 确定的下限和上限的影响。

示例

有关示例,请参阅 读取动画变量值

要求

要求
最低受支持的客户端 Windows 7、Windows Vista 和适用于 Windows Vista 的平台更新 [桌面应用 |UWP 应用]
最低受支持的服务器 无受支持的版本
目标平台 Windows
标头 uianimation.h
DLL UIAnimation.dll

另请参阅

IUIAnimationVariable

IUIAnimationVariable::GetFinalIntegerValue

IUIAnimationVariable::GetPreviousIntegerValue

IUIAnimationVariable::GetValue

IUIAnimationVariable::SetLowerBound

IUIAnimationVariable::SetRoundingMode

IUIAnimationVariable::SetUpperBound