共用方式為


SharedStatusBar.Animation 方法

控制狀態列中圖示的動畫。

命名空間:  Microsoft.VisualStudio.Data.Schema.Package.UI
組件:  Microsoft.VisualStudio.Data.Schema.Package (在 Microsoft.VisualStudio.Data.Schema.Package.dll 中)

語法

'宣告
Public Function Animation ( _
    possibleOwner As SharedStatusBarOwner, _
    fOnOff As Integer, _
    ByRef pvIcon As Object _
) As Integer
public int Animation(
    SharedStatusBarOwner possibleOwner,
    int fOnOff,
    ref Object pvIcon
)
public:
virtual int Animation(
    SharedStatusBarOwner^ possibleOwner, 
    int fOnOff, 
    Object^% pvIcon
) sealed
abstract Animation : 
        possibleOwner:SharedStatusBarOwner * 
        fOnOff:int * 
        pvIcon:Object byref -> int 
override Animation : 
        possibleOwner:SharedStatusBarOwner * 
        fOnOff:int * 
        pvIcon:Object byref -> int 
public final function Animation(
    possibleOwner : SharedStatusBarOwner, 
    fOnOff : int, 
    pvIcon : Object
) : int

參數

  • fOnOff
    型別:System.Int32
    設定為 true 以開啟動畫,設定為 false 則加以關閉。
  • pvIcon
    型別:System.Object%
    如果 VARIANT 是 VT_I2,則這是指預先定義之動畫圖示的 SBAI_Index。如果這個參數是 VT_I4,則這是指 HBITMAP,其中包含要以動畫呈現的影片影像。影像的寬度應該是其高度的倍數。

傳回值

型別:System.Int32

實作

ISharedStatusBar.Animation(SharedStatusBarOwner, Int32, Object%)

.NET Framework 安全性

請參閱

參考

SharedStatusBar 類別

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