Adobe InDesign CS4 (6.0) Object Model JS: DashedStrokeStyle

InDesign CS4

Class

DashedStrokeStyle

 A dashed stroke style. Base Class: StrokeStyle

QuickLinks

duplicate, getElements, remove, toSource, toSpecifier

Hierarchy

Application | Document
StrokeStyle
DashedStrokeStyle

Properties

PropertyTypeAccessDescription
dashArrayArray of Measurement Unit (Number or String) r/wThe pattern of dashes and gaps, in the format [dash length1, gap length1, dash length2, gap length2]. Define up to ten values.
endCapEndCap:
EndCap.BUTT_END_CAP
EndCap.ROUND_END_CAP
EndCap.PROJECTING_END_CAP
r/wThe end shape of an open path.
idnumber readonlyThe unique ID of the DashedStrokeStyle.
indexnumber readonlyThe index of the DashedStrokeStyle within its containing object.
isValidbool readonlyReturns true if the object specifier resolves to valid objects.
namestring r/wThe name of the DashedStrokeStyle.
parentApplication
Document
readonlyThe parent of the DashedStrokeStyle (a Document or Application).
propertiesObject r/wA property that allows setting of several properties at the same time.
strokeCornerAdjustmentStrokeCornerAdjustment:
StrokeCornerAdjustment.NONE
StrokeCornerAdjustment.DASHES
StrokeCornerAdjustment.GAPS
StrokeCornerAdjustment.DASHES_AND_GAPS
r/wThe corner adjustment applied to the DashedStrokeStyle.
strokeStyleTypestring readonlyThe stroke style type.

Methods

Instances

DashedStrokeStyle duplicate ()
Duplicates the DashedStrokeStyle.

Array of DashedStrokeStyle getElements ()
Resolves the object specifier, creating an array of object references.

void remove ([replacingWith: any])
Deletes the stroke style.

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

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

string toSpecifier ()
Retrieves the object specifier.

Used in:

array of DashedStrokeStyle DashedStrokeStyles.itemByRange (from: any, to: any)

DashedStrokeStyle DashedStrokeStyles.nextItem (obj: DashedStrokeStyle)

DashedStrokeStyle DashedStrokeStyles.previousItem (obj: DashedStrokeStyle)

Return

DashedStrokeStyle DashedStrokeStyle.duplicate ()

Array of DashedStrokeStyle DashedStrokeStyle.getElements ()

DashedStrokeStyle DashedStrokeStyles.[] (index: number)

DashedStrokeStyle DashedStrokeStyles.add ([withProperties: Object])

DashedStrokeStyle DashedStrokeStyles.anyItem ()

Array of DashedStrokeStyle DashedStrokeStyles.everyItem ()

DashedStrokeStyle DashedStrokeStyles.firstItem ()

DashedStrokeStyle DashedStrokeStyles.item (index: any)

DashedStrokeStyle DashedStrokeStyles.itemByID (id: number)

DashedStrokeStyle DashedStrokeStyles.itemByName (name: string)

Array of DashedStrokeStyle DashedStrokeStyles.itemByRange (from: any, to: any)

DashedStrokeStyle DashedStrokeStyles.lastItem ()

DashedStrokeStyle DashedStrokeStyles.middleItem ()

DashedStrokeStyle DashedStrokeStyles.nextItem (obj: DashedStrokeStyle)

DashedStrokeStyle DashedStrokeStyles.previousItem (obj: DashedStrokeStyle)

Jongware, 20-Jun-2010 v3.0.3dContents :: Index