共用方式為


StatusBar.Progress 方法

建立、修改和清除 StatusBar 中的計量表控制項。

命名空間:  EnvDTE
組件:  EnvDTE (在 EnvDTE.dll 中)

語法

'宣告
Sub Progress ( _
    InProgress As Boolean, _
    Label As String, _
    AmountCompleted As Integer, _
    Total As Integer _
)
void Progress(
    bool InProgress,
    string Label,
    int AmountCompleted,
    int Total
)
void Progress(
    bool InProgress, 
    [InAttribute] String^ Label, 
    [InAttribute] int AmountCompleted, 
    [InAttribute] int Total
)
abstract Progress : 
        InProgress:bool * 
        Label:string * 
        AmountCompleted:int * 
        Total:int -> unit 
function Progress(
    InProgress : boolean, 
    Label : String, 
    AmountCompleted : int, 
    Total : int
)

參數

  • InProgress
    型別:System.Boolean
    必要項。表示是否要顯示計量表。如果 InProgress 設定為 False,計量表就會關閉。否則,計量表就會顯示。
  • Label
    型別:System.String
    選擇項。要顯示在計量表控制項上的標籤。
  • AmountCompleted
    型別:System.Int32
    選擇項。已完成的作業步驟數。
  • Total
    型別:System.Int32
    選擇項。作業中的總步驟數。

範例

Sub ProgressExample()
   Dim SBar As StatusBar
   SBar = DTE.StatusBar
   SBar.Progress(True, "doing something", 90, 100)
   SBar.Progress(False)
   SBar.Animate(True, vsStatusAnimation.vsStatusAnimationSave)
End Sub

.NET Framework 安全性

請參閱

參考

StatusBar 介面

EnvDTE 命名空間