InDesign Server2025
API 20.5.0.49
Object

DashedStrokeStyle

A dashed stroke style.

StrokeStyle DashedStrokeStyle
Hierarchy

Application | Document

DashedStrokeStyle

Properties

NameType AccessDescription
Number[] | String[] unit read/write The pattern of dashes and gaps, in the format [dash length1, gap length1, dash length2, gap length2]. Define up to ten values.
EndCap
read/write The end shape of an open path.
EventListeners<EventListener> readonly A collection of event listeners.
Events<Event> readonly A collection of events.
Number readonly The unique ID of the DashedStrokeStyle.
Number readonly The index of the DashedStrokeStyle within its containing object.
Boolean readonly Returns true if the object specifier resolves to valid objects.
String read/write The name of the DashedStrokeStyle.
Application | Document readonly The parent of the DashedStrokeStyle (a Document or Application).
Object read/write A property that allows setting of several properties at the same time.
StrokeCornerAdjustment
read/write The corner adjustment applied to the DashedStrokeStyle.
String readonly The stroke style type.

Methods

EventListener

Adds an event listener.

eventType String The event type.
handler File | JavaScriptFunction The event handler. Can accept: File or JavaScript Function.
captures? Boolean This parameter is obsolete.
DashedStrokeStyle[]

Resolves the object specifier, creating an array of object references.

void

Deletes the stroke style.

replacingWith? StrokeStyle | String The stroke style to apply in place of the deleted style. . Can accept: StrokeStyle or String.
Boolean

Removes the event listener.

eventType String The registered event type.
handler File | JavaScriptFunction The registered event handler. Can accept: File or JavaScript Function.
captures? Boolean This parameter is obsolete.
String

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

String

Retrieves the object specifier.

Object of 3

Properties elsewhere that hold a DashedStrokeStyle.

Parameter of 3

Method parameters that accept a DashedStrokeStyle.

Return 15

Methods that return a DashedStrokeStyle.