count

Syntax

ManagedAdverts.count();

Parameters

Return value number

The number of ManagedAdvert objects in the collection.

Description

The count() method returns the number of ManagedAdvert objects within the ManagedAdverts collection.

Examples

Count the managed adverts in the active document

// Count the managed adverts in the active document.
var count = app.activeDocument.managedAdverts.count();
alert("Number of managed adverts: " + count);

Supported versions

Adobe Version Supported
2023
2024
2025
2026