Ink - Adobe 26001360 - Illustrator CS - PC Manual

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

Advertisement

Adobe Illustrator CS Scripting Guide

Ink

Provides information about the ink name and related information.
Table 5.58 Ink — Properties
Property
Application
InkInfo
Name
Example 31.1
' InkList
'
' Assemble and display a string of the inks in
' this document
'
Dim appRef As New Illustrator.Application
Dim docRef As Illustrator.Document
' create a new document and simple text frame
Set docRef = appRef.Documents.Add()
Dim textRef As Illustrator.TextFrame
Set textRef = docRef.TextFrames.Add()
textRef.Top = docRef.Height - 100
textRef.Left = 100
' Collect data from each Ink and InkInfo object
Dim sInks As String
Dim inkRef
For Each inkRef In appRef.ActiveDocument.InkList
sInks = sInks & inkRef.Name
sInks = sInks & vbCrLf & vbTab
sInks = sInks & "Frequency = " & inkRef.InkInfo.Frequency
sInks = sInks & vbCrLf & vbTab
sInks = sInks & "Density = " & inkRef.InkInfo.Density
sInks = sInks & vbCrLf
Next inkRef
textRef.Contents = sInks
appRef.Redraw
R/O
Value type
R/O
AiApplication
object
InkInfo object
String
12 Aug 03
What it is
Application to which the collection
belongs
The ink information
The ink's name
353

Advertisement

Table of Contents
loading

This manual is also suitable for:

Illustrator cs

Table of Contents