Adobe 26001360 Scripting Guide - Page 394
Patterns, Notes, Example 50.1
UPC - 718659321840
View all Adobe 26001360 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 394 highlights
394 Visual Basic Reference Notes Illustrator's Pattern object represents a pattern as defined in the Illustrator application. Example 50.1 This script illustrates how to set the default fill color of document 1 to pattern 1. Dim appRef As New Illustrator.Application Dim frontDocument As Illustrator.Document Dim PatternColor As Illustrator.PatternColor Set frontDocument = appRef.Documents(1) Set PatternColor = New Illustrator.PatternColor PatternColor.Pattern = frontDocument.Patterns(1) frontDocument.DefaultFilled = True Patterns A collection of patterns in a document. Table 5.100 Patterns - Properites Property Application Count Parent R/O Value type What it is R/O Application object The Illustrator Application object R/O Long The number of objects in the collection R/O Document The document that contains this Patterns object Table 5.101 Patterns - Methods Method Returns Add Pattern object Index(item As Pattern) Long item(itemKey) Pattern object RemoveAll() Nothing What it does Creates a new object Returns the index position of the object within the collection Returns an object reference to the object identified by itemKey; by name or index Deletes all objects in this collection 12 Aug 03