Metodo StatusBar.Progress

Creazione, modifica e rimozione il controllo del tester in StatusBar .

Spazio dei nomi:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

Sintassi

'Dichiarazione
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
)

Parametri

  • InProgress
    Tipo: System.Boolean
    obbligatorio.Indica se il metro visualizzare.se InProgress è impostato su False, il metro è disattivato.In caso contrario, il metro visualizzare.
  • Label
    Tipo: System.String
    facoltativo.L'etichetta da visualizzare nel controllo del tester.
  • AmountCompleted
    Tipo: System.Int32
    facoltativo.Il numero di passaggi dell'operazione che ha completato.
  • Total
    Tipo: System.Int32
    facoltativo.Il numero totale dei passaggi in.

Esempi

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

Sicurezza di .NET Framework

Vedere anche

Riferimenti

StatusBar Interfaccia

Spazio dei nomi EnvDTE