Adobe 26001360 Scripting Guide - Page 374
Items, Table 5.79, Items - Properties, Items - Methods
UPC - 718659321840
View all Adobe 26001360 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 374 highlights
374 PageItems A collection of PageItems. Visual Basic Reference Table 5.79 PageItems - 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 object The object that contains this PageItems object Table 5.80 PageItems - Methods Method Returns Index(item As PageItem) Long item(itemKey) Object RemoveAll() Nothing What it does 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 Notes The PageItems class gives you complete access to every art object contained in an Illustrator document. Example 41.1 This example illustrates how to obtain all references to external files in the current document. The result is presented in a new Illustrator document. Before running this, you must open a document that contains one or more linked images. Dim appRef As New Illustrator.Application Dim sourceDocument As Illustrator.Document Dim artItem As Object Dim rasterArt As Illustrator.RasterItem Dim placedArt As Illustrator.PlacedItem Dim fileReferences(9) As String Dim index As Integer Set sourceDocument = appRef.ActiveDocument index = 0 For Each artItem In sourceDocument.PageItems 12 Aug 03