ISharedStatusBar.Animation 方法
控制状态栏中图标的动画。
命名空间: Microsoft.VisualStudio.Data.Schema.Package.UI
程序集: Microsoft.VisualStudio.Data.Schema.Package(在 Microsoft.VisualStudio.Data.Schema.Package.dll 中)
语法
声明
Function Animation ( _
possibleOwner As SharedStatusBarOwner, _
onOff As Integer, _
ByRef icon As Object _
) As Integer
int Animation(
SharedStatusBarOwner possibleOwner,
int onOff,
ref Object icon
)
int Animation(
SharedStatusBarOwner^ possibleOwner,
int onOff,
Object^% icon
)
abstract Animation :
possibleOwner:SharedStatusBarOwner *
onOff:int *
icon:Object byref -> int
function Animation(
possibleOwner : SharedStatusBarOwner,
onOff : int,
icon : Object
) : int
参数
- possibleOwner
类型:Microsoft.VisualStudio.Data.Schema.Package.UI.SharedStatusBarOwner
状态栏的所有者。如果不是所有者,则不会发生任何操作。
- onOff
类型:System.Int32
设置为 true 可打开动画;设置为 false 可关闭动画。
- icon
类型:System.Object%
如果 VARIANT 为 VT_I2,则引用预定义动画图标的 SBAI_Index。如果此参数为 VT_I4,则引用包含动画的幻灯片图像的 HBITMAP。图像宽度应为其高度的倍数。
返回值
类型:System.Int32
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。