StatusBar.Animate(Boolean, Object) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
显示中的动画图片 StatusBar 。
public:
void Animate(bool On, System::Object ^ AnimationType);
public:
void Animate(bool On, Platform::Object ^ AnimationType);
void Animate(bool On, winrt::Windows::Foundation::IInspectable const & AnimationType);
[System.Runtime.InteropServices.DispId(5)]
public void Animate (bool On, object AnimationType);
[<System.Runtime.InteropServices.DispId(5)>]
abstract member Animate : bool * obj -> unit
Public Sub Animate (On As Boolean, AnimationType As 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