StatusBar.Progress-Methode

Erstellt, ändert und löscht das Monitor-Steuerelement in StatusBar.

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

Syntax

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

Parameter

  • InProgress
    Typ: System.Boolean
    Erforderlich.Gibt an, ob die Anzeige angezeigt wird.Wenn InProgress auf False festgelegt ist, ist die Anzeige deaktiviert.Andernfalls wird die Anzeige angezeigt.
  • Label
    Typ: System.String
    Optional.Die anzuzeigende Bezeichnung auf der Fortschrittsanzeige.
  • AmountCompleted
    Typ: System.Int32
    Optional.Die Anzahl der bereits ausgeführten Schritte des Vorgangs.
  • Total
    Typ: System.Int32
    Optional.Die Gesamtzahl der Schritte in dem Vorgang.

Beispiele

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-Sicherheit

Siehe auch

Referenz

StatusBar Schnittstelle

EnvDTE-Namespace