DashedStrokeStyle

A dashed stroke style.

Methods:

addEventListener, duplicate, getElements, remove, removeEventListener, toSource, toSpecifier

Objects:

Boolean, EndCap, EventListeners, Events, Number, Object, String, StrokeCornerAdjustment

Hierarchy:

Superclass: StrokeStyle

Class: DashedStrokeStyle

Property Listing

Property

Type

Access

Description

dashArray

Array of Number

Array of String

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

EndCap

EndCap.BUTT_END_CAP

EndCap.PROJECTING_END_CAP

EndCap.ROUND_END_CAP

read/write

The end shape of an open path.

eventListeners

EventListeners EventListener

readonly

A collection of event listeners.

events

Events Event

readonly

A collection of events.

id

Number

readonly

The unique ID of the DashedStrokeStyle.

index

Number

readonly

The index of the DashedStrokeStyle within its containing object.

isValid

Boolean

readonly

Returns true if the object specifier resolves to valid objects.

name

String

read/write

The name of the DashedStrokeStyle.

parent

Application

Document

readonly

The parent of the DashedStrokeStyle (a Document or Application).

properties

Object

read/write

A property that allows setting of several properties at the same time.

strokeCornerAdjustment

StrokeCornerAdjustment

StrokeCornerAdjustment.DASHES

StrokeCornerAdjustment.DASHES_AND_GAPS

StrokeCornerAdjustment.GAPS

StrokeCornerAdjustment.NONE

read/write

The corner adjustment applied to the DashedStrokeStyle.

strokeStyleType

String

readonly

The stroke style type.

Method Listing

EventListener addEventListener (eventType:String, handler:Varies File JavaScriptFunction, [captures:Boolean=Boolean])

Adds an event listener.

Parameter

Type

Description

eventType

String

The event type.

handler

File

JavaScriptFunction

The event handler. Can accept: File or JavaScript Function.

captures

Boolean

This parameter is obsolete. (Optional)

(default: false)

DashedStrokeStyle duplicate ()

Duplicates the DashedStrokeStyle.

DashedStrokeStyle getElements ()

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

undefined remove (replacingWith:Varies StrokeStyle String)

Deletes the stroke style.

Parameter

Type

Description

replacingWith

StrokeStyle

String

The stroke style to apply in place of the deleted style. . Can accept: StrokeStyle or String. (Optional)

Boolean removeEventListener (eventType:String, handler:Varies File JavaScriptFunction, [captures:Boolean=Boolean])

Removes the event listener.

Parameter

Type

Description

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. (Optional)

(default: false)

String toSource ()

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

String toSpecifier ()

Retrieves the object specifier.

Object of

Event.parent

EventListener.parent

MutationEvent.parent

Return

DashedStrokeStyles.add()

DashedStrokeStyle.duplicate()

DashedStrokeStyle.getElements()

DashedStrokeStyles.anyItem()

DashedStrokeStyles.everyItem()

DashedStrokeStyles.nextItem()

DashedStrokeStyles.previousItem()

DashedStrokeStyles.itemByID()

DashedStrokeStyles.item()

DashedStrokeStyles.[]()

DashedStrokeStyles.itemByName()

DashedStrokeStyles.itemByRange()

DashedStrokeStyles.firstItem()

DashedStrokeStyles.lastItem()

DashedStrokeStyles.middleItem()