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

参数

  • onOff
    类型:System.Int32
    设置为 true 可打开动画;设置为 false 可关闭动画。
  • icon
    类型:System.Object%
    如果 VARIANT 为 VT_I2,则引用预定义动画图标的 SBAI_Index。如果此参数为 VT_I4,则引用包含动画的幻灯片图像的 HBITMAP。图像宽度应为其高度的倍数。

返回值

类型:System.Int32

.NET Framework 安全性

请参见

参考

ISharedStatusBar 接口

Microsoft.VisualStudio.Data.Schema.Package.UI 命名空间