Skip to content

Pattern

app.activeDocument.patterns[index]

An Illustrator pattern definition contained in a document.

Patterns are shown in the Swatches palette.

Each pattern is referenced by a PatternColor object, which defines the pattern’s appearance.


app.activeDocument.patterns[index].name

The pattern name.

String


app.activeDocument.patterns[index].parent

The document that contains this pattern.

Document; read-only.


app.activeDocument.patterns[index].typename

The class name of the object.

String; read-only.


app.activeDocument.patterns[index].remove()

Removes the referenced pattern from the document.

Nothing.


app.activeDocument.patterns[index].toString()

Returns the object type of a referenced object. If the object has a name, also returns the name.

String