مشاركة عبر


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
    مطلوبة.الإشارة إلى ما إذا كان المقياس هو dهوplayed.إذا InProgressهو التعيين إلى False، والمقياس إيقاف. معطلةOtherwهوe، مؤشر هو dهوplayed.
  • 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 واجهة

StatusBar الأعضاء

EnvDTE مساحة الاسم