AutomationElementCollection.Count Propiedad

Definición

Obtiene el número de elementos de esta colección.

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

Valor de propiedad

Número de elementos.

Implementaciones

Ejemplos

En el ejemplo siguiente se muestra la Count propiedad que se usa.

// 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)

Se aplica a