Documents - Adobe 26001360 - Illustrator CS - PC Manual

Scripting guide
Hide thumbs Also See for 26001360 - Illustrator CS - PC:
Table of Contents

Advertisement

319
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
Application
Count
Parent
Table 5.26 Documents — Methods
Method
Add(
[DocumentColorSpace As
AiDocumentColorSpace],
[Width As Double],
[Height As Double])
Index(item As Document)
item(itemKey)
R/O
Value type
R/O
Application object
R/O
Long
R/O
Object
Returns
Document
object
Long
Document
object
12 Aug 03
Visual Basic Reference
What it is
The Illustrator Application object
The number of objects in the collection
The parent of this 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

Advertisement

Table of Contents
loading

This manual is also suitable for:

Illustrator cs

Table of Contents