Adobe 26001360 Scripting Guide - Page 353
Ink, Table 5.58, Ink - Properties
UPC - 718659321840
View all Adobe 26001360 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 353 highlights
Adobe Illustrator CS Scripting Guide 353 Ink Provides information about the ink name and related information. Table 5.58 Ink - Properties Property R/O Value type Application R/O AiApplication object InkInfo Name InkInfo object String What it is Application to which the collection belongs The ink information The ink's 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 12 Aug 03