Item Property

Applies to:  Windows collection
See also:  Count property

read-only

Returns a specific window in the collection.

Syntax:

object.Item(index)

The Count syntax has these parts:

Part Description
object The name of a Windows collection.
index An integer indicating which element of the collection is to be returned.  index must be greater or equal to 1, and less than or equal to the Count property of the collection.

Remarks:

The item property is the default property for a Windows collection.  Therefore, the following two lines of code are equivalent:

Set objWindow = GetTopLevelWindows.Item(1)
Set objWindow = GetTopLevelWindows(1)

 

Home Copyright and Disclaimer