Edit in GitHubLog an issue

CountItems

A collections class allowing access to the document's CountItem.

Properties

NameTypeAccessMin VersionDescription
length
number
R
24.1
Number of CountItem elements in this collection.
parent
R
24.1
The owner Document of this CountItems collection.
typename
string
R
24.1
The CountItems collection's typename.

Methods

activateGroupByIndex

24.1

void

Activates a Count Item group by its index.

Parameters

NameType
index
number

add

24.1

CountItem

Adds a new CountItem to the collection.

Copied to your clipboard
app.activeDocument.countItems.add({x: 20, y: 20});

Parameters

NameType
position
object
position.x
number
position.y
number

createGroup

24.1

void

Creates a new Count Item group.

Parameters

NameType
groupName
string

getAll

24.1

CountItem[]

Retrieves all CountItem objects from this collection.

Copied to your clipboard
app.activeDocument.countItems.getAll();

removeAllFromActiveGroup

24.1

void

Clears all CountItem objects from this collection.

Copied to your clipboard
app.activeDocument.countItems.removeAllFromActiveGroup();

removeGroupByIndex

24.1

void

Removes a Count Item group by its index.

Parameters

NameType
index
number

renameActiveGroup

24.1

void

Renames the currently active Count Item group.

Parameters

NameType
groupName
string

setActiveColor

24.1

void

Sets the Color of the Count Item marker and label.

Parameters

NameType
color

setActiveLabelSize

24.1

void

Sets the Count Item label (the number) size.

Parameters

NameType
size
number

setActiveMarkerSize

24.1

void

Sets the Count Item marker (the dot) size.

Parameters

NameType
size
number

toggleActiveGroupVisibility

24.1

void

Toggles the visibility of the currently selected Count Item group.

Parameters

NameType
isVisible
boolean
Was this helpful?
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.