Adobe 26001360 Scripting Guide - Page 309
CompoundPathItems, Example 9.1
UPC - 718659321840
View all Adobe 26001360 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 309 highlights
Adobe Illustrator CS Scripting Guide 309 'Set the gradient of the compound path newPath.Stroked = True newPath.StrokeWidth = 3.5 newPath.StrokeColor = frontDocument.Swatches(8).Color CompoundPathItems A collection of compound paths. Table 5.17 CompoundPathItems - Properties Property R/O Value type What it is Application Count Parent R/O Application object The Illustrator Application object R/O Long The number of objects in the collection R/O Document object The document that contains this CompoundPathItems object Table 5.18 CompoundPathItems - Methods Method Returns What it does Add() Index(item As CompoundPathItem) Item(itemKey) RemoveAll() CompountPathItem object Long CompoundPathItem object Nothing Creates a new CompoundPathItem 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 Example 9.1 This example displays the total number of compound paths contained in the first layer of the current document. Dim appRef As New Illustrator.Application Dim numCPaths As Integer 12 Aug 03