src/pages/ps_reference/classes/countitems.md
A collections class allowing access to the document's CountItem.
| 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. |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.1</span>
void
Activates a Count Item group by its index.
| Name | Type |
|---|---|
index | number |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.1</span>
Adds a new CountItem to the collection.
app.activeDocument.countItems.add({x: 20, y: 20});
| Name | Type |
|---|---|
position | object |
position.x | number |
position.y | number |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.1</span>
void
Creates a new Count Item group.
| Name | Type |
|---|---|
groupName | string |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.1</span>
Retrieves all CountItem objects from this collection.
app.activeDocument.countItems.getAll();
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.1</span>
void
Clears all CountItem objects from this collection.
app.activeDocument.countItems.removeAllFromActiveGroup();
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.1</span>
void
Removes a Count Item group by its index.
| Name | Type |
|---|---|
index | number |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.1</span>
void
Renames the currently active Count Item group.
| Name | Type |
|---|---|
groupName | string |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.1</span>
void
Sets the Color of the Count Item marker and label.
| Name | Type |
|---|---|
color | SolidColor |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.1</span>
void
Sets the Count Item label (the number) size.
| Name | Type |
|---|---|
size | number |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.1</span>
void
Sets the Count Item marker (the dot) size.
| Name | Type |
|---|---|
size | number |
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">24.1</span>
void
Toggles the visibility of the currently selected Count Item group.
| Name | Type |
|---|---|
isVisible | boolean |