Adobe 26001360 Scripting Guide - Page 450
Notes, Example 82.1, Table 5.154, SymbolItem - Methods Continued
UPC - 718659321840
View all Adobe 26001360 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 450 highlights
450 Visual Basic Reference Table 5.154 SymbolItem - Methods (Continued) Method Returns What it does Translate( [deltaX As Double], [deltaY As Double], [transformObjects As Boolean], [transformFillPatterns As Boolean], [transformFillGradients As Boolean], [transformStrokePatterns As Boolean]) ZOrder(zOrderCmd As AiZOrderMethod) Nothing Nothing Repositions the SymbolItem relative to the current position, where deltaX is the horizontal offset and deltaY is the vertical offset Arranges the SymbolItem's position in the stacking order of the group or layer (Parent) of this object Notes Note: The Symbol associated with a SymbolItem can be changed by assigning a reference to a different Symbol to the SymbolItem's Symbol property. Example 82.1 ' SymbolItem ' SymbolItems ' ' Add a symbol item to the document for every ' symbol available. ' Dim appRef As New Illustrator.Application Dim docRef As Illustrator.Document Set docRef = appRef.Documents.Add() Dim x As Integer Dim y As Integer y = docRef.Height - 30 x = 50 Dim symbolRef As Illustrator.Symbol Dim itemRef As Illustrator.SymbolItem Dim i As Integer i = 1 Do While (i < (docRef.Symbols.Count + 1)) Set symbolRef = docRef.Symbols(i) Set itemRef = docRef.SymbolItems.Add(symbolRef) itemRef.Top = y itemRef.Left = x 12 Aug 03