Count Property

Home Page (Objects)OverviewFAQReference

Applies to: Breakpoints object, Configurations object, Documents object, Projects object, Windows object

Gets the number of items in a collection.

Syntax

object**.Count**

Parameters

object

An expression that evaluates to one of the objects in the Applies To list above.

Remarks

The Count property has the Long type.

Use the Count property, for example, to get the number of documents in the Documents collection.

Example

The following example prints each document in the Documents collection:

For i = 1 to Documents.Count
   Documents.Item(i).PrintOut
Next