CountItems

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

Properties

Name
Type
Access
Min Version
Description
length
number
R
24.1
Number of CountItem elements in this collection.
parent
Document
R
24.1
The owner Document of this CountItems collection.
typename
string
R
24.1
The CountItems collection's typename.

Methods

activateGroupByIndex

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.1</span>

<br/> void

Activates a Count Item group by its index.

Parameters

Name
Type
index
number

add

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.1</span>

<br/> CountItem

Adds a new CountItem to the collection.

app.activeDocument.countItems.add({x: 20, y: 20});

Parameters

Name
Type
position
object
position.x
number
position.y
number

createGroup

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.1</span>

<br/> void

Creates a new Count Item group.

Parameters

Name
Type
groupName
string

getAll

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.1</span>

<br/> CountItem[]

Retrieves all CountItem objects from this collection.

app.activeDocument.countItems.getAll();

removeAllFromActiveGroup

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.1</span>

<br/> void

Clears all CountItem objects from this collection.

app.activeDocument.countItems.removeAllFromActiveGroup();

removeGroupByIndex

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.1</span>

<br/> void

Removes a Count Item group by its index.

Parameters

Name
Type
index
number

renameActiveGroup

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.1</span>

<br/> void

Renames the currently active Count Item group.

Parameters

Name
Type
groupName
string

setActiveColor

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.1</span>

<br/> void

Sets the Color of the Count Item marker and label.

Parameters

Name
Type
color
SolidColor

setActiveLabelSize

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.1</span>

<br/> void

Sets the Count Item label (the number) size.

Parameters

Name
Type
size
number

setActiveMarkerSize

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.1</span>

<br/> void

Sets the Count Item marker (the dot) size.

Parameters

Name
Type
size
number

toggleActiveGroupVisibility

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.1</span>

<br/> void

Toggles the visibility of the currently selected Count Item group.

Parameters

Name
Type
isVisible
boolean