InDesign2026
API 21.5.1.73
Collection of StrokeStyle

StrokeStyles

A collection of stroke styles.

Properties

NameType AccessDescription
Number readonly The number of objects in the collection.

Methods

StrokeStyle

Returns the StrokeStyle with the specified index.

index Number The index.
StrokeStyle

Returns any StrokeStyle in the collection.

Number

Displays the number of elements in the StrokeStyle.

StrokeStyle[]

Returns every StrokeStyle in the collection.

StrokeStyle

Returns the first StrokeStyle in the collection.

StrokeStyle

Returns the StrokeStyle with the specified index or name.

index LongInteger | String The index or name. Can accept: Long Integer or String.
StrokeStyle

Returns the StrokeStyle with the specified ID.

id Number The ID.
StrokeStyle

Returns the StrokeStyle with the specified name.

name String The name.
StrokeStyle[]

Returns the StrokeStyles within the specified range.

from LongInteger | StrokeStyle | String The StrokeStyle, index, or name at the beginning of the range. Can accept: StrokeStyle, Long Integer or String.
to LongInteger | StrokeStyle | String The StrokeStyle, index, or name at the end of the range. Can accept: StrokeStyle, Long Integer or String.
StrokeStyle

Returns the last StrokeStyle in the collection.

StrokeStyle

Returns the middle StrokeStyle in the collection.

StrokeStyle

Returns the StrokeStyle whose index follows the specified StrokeStyle in the collection.

obj StrokeStyle The StrokeStyle whose index comes before the desired StrokeStyle.
StrokeStyle

Returns the StrokeStyle with the index previous to the specified index.

obj StrokeStyle The index of the StrokeStyle that follows the desired StrokeStyle.
String

Generates a string which, if executed, will return the StrokeStyle.

Object of 2

Properties elsewhere that hold a StrokeStyles.