StatusBar.Animate 方法

StatusBar 中显示动画图片。

命名空间:  EnvDTE
程序集:  EnvDTE(在 EnvDTE.dll 中)

语法

声明
Sub Animate ( _
    On As Boolean, _
    AnimationType As Object _
)
void Animate(
    bool On,
    Object AnimationType
)
void Animate(
    bool On, 
    Object^ AnimationType
)
abstract Animate : 
        On:bool * 
        AnimationType:Object -> unit
function Animate(
    On : boolean, 
    AnimationType : Object
)

参数

  • On
    类型:Boolean

    必选。 指示是打开动画 (True) 还是关闭动画 (False)。

  • AnimationType
    类型:Object

    必选。 一个指示要显示的动画图标的 vsStatusAnimation 常数。

    或者,AnimationType 也可以采用 IPicture 或 IPictureDisp,后者是高为 16 像素、宽为 16 像素倍数的位图。 若要关闭自定义动画,必须传递完全相同的 IPicture 或 IPictureDisp。

示例

Sub AnimateExample()
   Dim SBar As StatusBar
   SBar = DTE.StatusBar
   ' Turn on the "save" Status Bar animation.
   SBar.Animate(True, vsstatusanimation.vsStatusAnimationSave)
   MsgBox("Notice the Status Bar animation.")
   ' Turn off the animation.
   SBar.Animate(False, vsstatusanimation.vsStatusAnimationSave)
End Sub

.NET Framework 安全性

请参阅

参考

StatusBar 接口

EnvDTE 命名空间