InDesign Server2025
API 20.5.0.49
Object

StrokeStyle

A stroke style.

Hierarchy

Application | Document

StrokeStyle

Properties

NameType AccessDescription
EventListeners<EventListener> readonly A collection of event listeners.
Events<Event> readonly A collection of events.
Number readonly The unique ID of the StrokeStyle.
Number readonly The index of the StrokeStyle within its containing object.
Boolean readonly Returns true if the object specifier resolves to valid objects.
String read/write The name of the StrokeStyle.
Application | Document readonly The parent of the StrokeStyle (a Document or Application).
Object read/write A property that allows setting of several properties at the same time.
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.
StrokeStyle

Duplicates the StrokeStyle.

StrokeStyle[]

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 StrokeStyle.

String

Retrieves the object specifier.

Object of 157

Properties elsewhere that hold a StrokeStyle.

Button.strokeTypeCell.bottomEdgeStrokeTypeCell.diagonalLineStrokeTypeCell.innerColumnStrokeTypeCell.innerRowStrokeTypeCell.leftEdgeStrokeTypeCell.rightEdgeStrokeTypeCell.topEdgeStrokeTypeCellStyle.bottomEdgeStrokeTypeCellStyle.diagonalLineStrokeTypeCellStyle.leftEdgeStrokeTypeCellStyle.rightEdgeStrokeTypeCellStyle.topEdgeStrokeTypeChangeGrepPreference.strikeThroughTypeChangeGrepPreference.underlineTypeChangeObjectPreference.strokeTypeChangeTextPreference.strikeThroughTypeChangeTextPreference.underlineTypeChangeTransliteratePreference.strikeThroughTypeChangeTransliteratePreference.underlineTypeCharacter.paragraphBorderTypeCharacter.ruleAboveTypeCharacter.ruleBelowTypeCharacter.strikeThroughTypeCharacter.underlineTypeCharacterStyle.strikeThroughTypeCharacterStyle.underlineTypeCheckBox.strokeTypeColumn.bottomEdgeStrokeTypeColumn.diagonalLineStrokeTypeColumn.innerColumnStrokeTypeColumn.innerRowStrokeTypeColumn.leftEdgeStrokeTypeColumn.rightEdgeStrokeTypeColumn.topEdgeStrokeTypeComboBox.strokeTypeEPS.strokeTypeEPSText.strokeTypeEndnoteTextFrame.strokeTypeEvent.parentEventListener.parentFindGrepPreference.strikeThroughTypeFindGrepPreference.underlineTypeFindObjectPreference.strokeTypeFindTextPreference.strikeThroughTypeFindTextPreference.underlineTypeFindTransliteratePreference.strikeThroughTypeFindTransliteratePreference.underlineTypeFootnoteOption.continuingRuleTypeFootnoteOption.ruleTypeFormField.strokeTypeGraphic.strokeTypeGraphicLine.strokeTypeGroup.strokeTypeHtmlItem.strokeTypeImage.strokeTypeImportedPage.strokeTypeInsertionPoint.paragraphBorderTypeInsertionPoint.ruleAboveTypeInsertionPoint.ruleBelowTypeInsertionPoint.strikeThroughTypeInsertionPoint.underlineTypeLine.paragraphBorderTypeLine.ruleAboveTypeLine.ruleBelowTypeLine.strikeThroughTypeLine.underlineTypeListBox.strokeTypeMediaItem.strokeTypeMovie.strokeTypeMultiStateObject.strokeTypeMutationEvent.parentObjectStyle.strokeTypeOval.strokeTypePDF.strokeTypePICT.strokeTypePageItem.strokeTypePageItemDefault.strokeTypeParagraph.paragraphBorderTypeParagraph.ruleAboveTypeParagraph.ruleBelowTypeParagraph.strikeThroughTypeParagraph.underlineTypeParagraphStyle.paragraphBorderTypeParagraphStyle.ruleAboveTypeParagraphStyle.ruleBelowTypeParagraphStyle.strikeThroughTypeParagraphStyle.underlineTypePolygon.strokeTypeRadioButton.strokeTypeRectangle.strokeTypeRow.bottomEdgeStrokeTypeRow.diagonalLineStrokeTypeRow.innerColumnStrokeTypeRow.innerRowStrokeTypeRow.leftEdgeStrokeTypeRow.rightEdgeStrokeTypeRow.topEdgeStrokeTypeSVG.strokeTypeSignatureField.strokeTypeSound.strokeTypeSplineItem.strokeTypeStory.paragraphBorderTypeStory.ruleAboveTypeStory.ruleBelowTypeStory.strikeThroughTypeStory.underlineTypeTable.bottomBorderStrokeTypeTable.endColumnLineStyleTable.endRowStrokeTypeTable.leftBorderStrokeTypeTable.rightBorderStrokeTypeTable.startColumnStrokeTypeTable.startRowStrokeTypeTable.topBorderStrokeTypeTableStyle.bottomBorderStrokeTypeTableStyle.endColumnLineStyleTableStyle.endRowStrokeTypeTableStyle.leftBorderStrokeTypeTableStyle.rightBorderStrokeTypeTableStyle.startColumnStrokeTypeTableStyle.startRowStrokeTypeTableStyle.topBorderStrokeTypeText.paragraphBorderTypeText.ruleAboveTypeText.ruleBelowTypeText.strikeThroughTypeText.underlineTypeTextBox.strokeTypeTextColumn.paragraphBorderTypeTextColumn.ruleAboveTypeTextColumn.ruleBelowTypeTextColumn.strikeThroughTypeTextColumn.underlineTypeTextDefault.paragraphBorderTypeTextDefault.ruleAboveTypeTextDefault.ruleBelowTypeTextDefault.strikeThroughTypeTextDefault.underlineTypeTextFrame.strokeTypeTextFramePreference.columnRuleStrokeTypeTextStyleRange.paragraphBorderTypeTextStyleRange.ruleAboveTypeTextStyleRange.ruleBelowTypeTextStyleRange.strikeThroughTypeTextStyleRange.underlineTypeWMF.strokeTypeWord.paragraphBorderTypeWord.ruleAboveTypeWord.ruleBelowTypeWord.strikeThroughTypeWord.underlineTypeXmlStory.paragraphBorderTypeXmlStory.ruleAboveTypeXmlStory.ruleBelowTypeXmlStory.strikeThroughTypeXmlStory.underlineType

Parameter of 9

Method parameters that accept a StrokeStyle.

Return 14

Methods that return a StrokeStyle.