Adobe 26001360 Scripting Guide - Page 311
DataSets, Table 5.21, DataSets - Properties, DataSets - Methods
UPC - 718659321840
View all Adobe 26001360 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 311 highlights
Adobe Illustrator CS Scripting Guide 311 DataSets A collection of DataSets. Table 5.21 DataSets - Properties Property R/O Value type What it is Application Count Parent R/O Application object The Illustrator Application object R/O Long The number of datasets in the collection R/O Document object The name of the object that is this DataSet object's parent Table 5.22 DataSets - Methods Method Returns Add() DataSet object Index(item As DataSets) Long Item(itemKey) DataSet object RemoveAll() Nothing What it does Creates a new DataSet 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 Example 10.1 ' Variables and Datasets ' ' Create two variables (visibility and text) ' Create two datasets with different values ' Display both datasets ' Dim appRef As New Illustrator.Application Dim docRef As Illustrator.Document Set docRef = appRef.Documents.Add() ' Create 2 variables, Visibility and Text ' Create a visibility variable Dim itemRef As Illustrator.pathItem Set itemRef = docRef.PathItems.Rectangle(600, 200, 150, 150) Dim colorRef As New RGBColor colorRef.Red = 255 itemRef.FillColor = colorRef Dim visibilityVar As Illustrator.Variable Set visibilityVar = docRef.Variables.Add() 12 Aug 03