Adobe 26001360 Scripting Guide - Page 319
Documents, Example 11.2
UPC - 718659321840
View all Adobe 26001360 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 319 highlights
319 Visual Basic Reference Example 11.2 This example demonstrates how to create a new document with specific default properties. Dim appRef As New Illustrator.Application Dim frontDocument As Illustrator.Document If (appRef.Documents.Count = 0) Then Set frontDocument = appRef.Documents.Add Else Set frontDocument = appRef.Documents(1) End If frontDocument.DefaultFilled = True frontDocument.DefaultStroked = True Documents A collection of documents. Table 5.25 Documents - 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 parent of this object Table 5.26 Documents - Methods Method Add( [DocumentColorSpace As AiDocumentColorSpace], [Width As Double], [Height As Double]) Index(item As Document) Returns Document object Long item(itemKey) Document object What it does Creates a new document using optional parameters and returns a reference to the new document Returns the index position of the object within the collection Returns an object reference to the object identified by itemKey; by name or index 12 Aug 03