Stack: Count (get)

Count

Gets the number of elements contained in the Stack.



 Public Property Get Count ( ) As Long

Return Values

Long -  The number of elements contained in the Stack.

Remarks

The capacity is the number of elements that the Stack can store. Count is the number of elements that are actually in the Stack.

The capacity is always greater than or equal to Count. If Count exceeds the capacity while adding elements, the capacity is automatically increased by reallocating the internal array before copying the old elements and adding the new elements.

Read Only.

See Also

Project CorLib Overview

Class Stack Overview