Adobe 26001360 - Illustrator CS - PC Manual page 365

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

Advertisement

Adobe Illustrator CS Scripting Guide
Table 5.71 Lines — Methods
Method
Index(ItemPtr As TextRange)
Item(ItemKey)
RemoveAll()
Example 35.1
' Lines
'
' Create an area text item and add some text
' Display the line count, then resize it and
' display the line count again.
'
' Create an area text
Dim appRef As New Illustrator.Application
Dim docRef As Illustrator.Document
Set docRef = appRef.Documents.Add()
Dim itemRef As Illustrator.pathItem
Set itemRef = docRef.PathItems.Rectangle(500, 200, 50, 300)
Dim textRef As Illustrator.TextFrame
Set textRef = docRef.TextFrames.AreaText(itemRef)
textRef.Contents = "Scripting with Illustrator is fun and easy."
appRef.Redraw
MsgBox "There are " & CStr(textRef.Lines.Count) & " lines."
' change the path's width and display line count
itemRef.Width = 300
appRef.Redraw
MsgBox "Now there are " & CStr(textRef.Lines.Count) & " lines."
Returns
Long
TextRange
Nothing
12 Aug 03
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
365

Advertisement

Table of Contents
loading

This manual is also suitable for:

Illustrator cs

Table of Contents