StatusBar.Animate Method
Displays an animated picture in the StatusBar.
Namespace: EnvDTE
Assembly: EnvDTE (in EnvDTE.dll)
Syntax
'Declaration
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
)
Parameters
- On
Type: System.Boolean
Required. Indicates whether to turn the animation on (True) or off (False).
- AnimationType
Type: System.Object
Required. A vsStatusAnimation constant indicating an animated icon to display.
Alternatively, AnimationType can also take an IPicture or IPictureDisp which is a bitmap 16 pixels high and a multiple of 16 pixels wide. To turn off the custom animation, you must pass the same exact IPicture or IPictureDisp.
Examples
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 Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.