Characters - Adobe 26001360 - Illustrator CS - PC Manual

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

Advertisement

300

Characters

Characters is a collection of TextRange objects with each TextRange representing a single
character.
Table 5.8
Characters — Properties
Property
Application
Count
Parent
Table 5.9
Characters — Methods
Method
Add(Contents As String
[, RelativeObject]
[, InsertionLocation])
AddBefore(Contents As String)
Index(ItemPtr As TextRange)
RemoveAll()
Example 5.1
Dim appRef As New Illustrator.Application
Dim numChars As Integer
Dim textArt As Illustrator.TextFrame
Dim textArtRange As Illustrator.TextRange
If appRef.Documents.Count > 0 Then
numChars = 0
For Each textArt In appRef.ActiveDocument.TextFrames
Set textArtRange = textArt.TextRange
numChars = numChars + textArtRange.length
Next
MsgBox ("There are " & numChars & " characters in the document.")
End If
R/O
Value type
R/O
Application
R/O
Long
R/O
Object
Returns
TextRange
TextRange
Long
Nothing
12 Aug 03
Visual Basic Reference
What it is
Application that the collection belongs to
Number of elements in the collection
The object's container
What it does
Create a character
Insert text at the beginning of the range.
Returns an object reference to the object
identified by itemKey; by name or index
Delete every element in the collection

Advertisement

Table of Contents
loading

This manual is also suitable for:

Illustrator cs

Table of Contents