Adobe 26001360 Scripting Guide - Page 334
GradientColor, Notes, Example 21.1
UPC - 718659321840
View all Adobe 26001360 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 334 highlights
334 Visual Basic Reference Table 5.38 Gradients - Methods (Continued) Method Returns item(itemKey) Gradient object RemoveAll() Nothing What it does Returns an object reference to the object identified by itemKey; by name or index Deletes all objects in this collection Notes Illustrator's Gradient object represents a gradient as defined in the Illustrator application. Additional gradients may be created by the user within Illustrator or via a script. Example 21.1 This example illustrates how you can remove a gradient from a document. Dim appRef As New Illustrator.Application Dim frontDocument As Illustrator.Document Dim gradientToDelete As Illustrator.Gradient Set frontDocument = appRef.ActiveDocument 'Get a reference to the gradient that you want to delete Set gradientToDelete = frontDocument.Gradients(1) 'Now delete the gradient using the collection frontDocument.Gradients.Remove gradientToDelete GradientColor A gradient color specification, used in conjunction with the Gradient property of the Color specification. Table 5.39 GradientColor - Properties Property R/O Value type What it is Angle Application Gradient HiliteAngle Double The gradient vector angle (in degrees) R/O Application object The Illustrator Application object Gradient object Reference to the object defining the gradient Double The gradient hilite vector angle (in degrees) 12 Aug 03