StatusBar.StatusBarPanelCollection.Count StatusBar.StatusBarPanelCollection.Count StatusBar.StatusBarPanelCollection.Count StatusBar.StatusBarPanelCollection.Count Property

定义

获取集合中的项数。Gets the number of items in the collection.

public:
 property int Count { int get(); };
[System.ComponentModel.Browsable(false)]
public int Count { get; }
member this.Count : int
Public ReadOnly Property Count As Integer

属性值

集合中 StatusBarPanel 对象的数目。The number of StatusBarPanel objects in the collection.

实现

注解

此属性可确定在面板数StatusBarThis property enables you to determine the number of panels in the StatusBar. 然后,将循环访问集合的值和你需要提供要执行循环的迭代次数时,可以使用此值。You can then use this value when you are looping through the values of the collection and you need to provide a number of iterations to perform the loop.

适用于