Método StatusBar.Progress

Cria, modifica e limpa o controle de medição dentro do StatusBar .

Namespace:  EnvDTE
Assembly:  EnvDTE (em EnvDTE.dll)

Sintaxe

'Declaração
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
)

Parâmetros

  • InProgress
    Tipo: System.Boolean
    Obrigatório.Indica se o medidor é exibido.Se InProgress for definido como False, o medidor está desativado.Caso contrário, o medidor é exibido.
  • Label
    Tipo: System.String
    Opcional.O rótulo para exibir no controle do medidor.
  • AmountCompleted
    Tipo: System.Int32
    Opcional.O número de etapas da operação que foram concluídas.
  • Total
    Tipo: System.Int32
    Opcional.O número total de etapas na operação.

Exemplos

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

Segurança do .NET Framework

Consulte também

Referência

StatusBar Interface

Namespace EnvDTE