Count Property

Count returns the number of items present in a collection. Returns a long. This is a read-only property.

Syntax

object.Count

Example 1

This example demonstrates how to return the number of axes in an Axes collection.

Debug.Print Axes.Count

Example 2

This example demonstrates how to return the number of maps within a map frame.

Debug.Print Overlays.Count

Used by: Axes collection, ColorNodes collection, Documents collection, LegendLayers collection, Levels collection, Overlays collection, Profiles Collection, ScaleBars collection, Selection collection, Shapes collection, SymbologyClassedColorBins collection, SymbologyClassedSymbolsBins collection, SymbologyUniqueValues collection, Windows collection