AutomationElementCollection.Count Özellik

Tanım

Bu koleksiyondaki öğe sayısını alır.

public:
 property int Count { int get(); };
public int Count { get; }
member this.Count : int
Public ReadOnly Property Count As Integer

Özellik Değeri

Öğe sayısı.

Uygulamalar

Örnekler

Aşağıdaki örnekte kullanılan özellik gösterilmektedir Count .

// elementCollection is an AutomationElementCollection.
AutomationElement[] elementArray = new AutomationElement[elementCollection.Count];
elementCollection.CopyTo(elementArray, 0);
' elementCollection is an AutomationElementCollection.
Dim elementArray(elementCollection.Count) As AutomationElement
elementCollection.CopyTo(elementArray, 0)

Şunlara uygulanır