Edit in GitHubLog an issue

CountItems

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

Properties

名称类型访问最低版本描述
lengthnumberR24.1Number of CountItem elements in this collection.
parentDocumentR24.1The owner Document of this CountItems collection.
typenamestringR24.1The CountItems collection's typename.

Methods

activateGroupByIndex

24.1

void

Activates a Count Item group by its index.

Parameters

名称类型
indexnumber

add

24.1

CountItem

Adds a new CountItem to the collection.

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

Parameters

名称类型
positionobject
position.xnumber
position.ynumber

createGroup

24.1

void

Creates a new Count Item group.

Parameters

名称类型
groupNamestring

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

名称类型
indexnumber

renameActiveGroup

24.1

void

Renames the currently active Count Item group.

Parameters

名称类型
groupNamestring

setActiveColor

24.1

void

Sets the Color of the Count Item marker and label.

Parameters

名称类型
colorSolidColor

setActiveLabelSize

24.1

void

Sets the Count Item label (the number) size.

Parameters

名称类型
sizenumber

setActiveMarkerSize

24.1

void

Sets the Count Item marker (the dot) size.

Parameters

名称类型
sizenumber

toggleActiveGroupVisibility

24.1

void

Toggles the visibility of the currently selected Count Item group.

Parameters

名称类型
isVisibleboolean
Was this helpful?
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2023 Adobe. All rights reserved.