Gradientcolor - Adobe 26001360 - Illustrator CS - PC Manual

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

Advertisement

334
Table 5.38 Gradients — Methods (Continued)
Method
item(itemKey)
RemoveAll()
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
Angle
Application
Gradient
HiliteAngle
Returns
Gradient object
Nothing
R/O
Value type
Double
R/O
Application object
Gradient object
Double
12 Aug 03
Visual Basic Reference
What it does
Returns an object reference to the object
identified by itemKey; by name or index
Deletes all objects in this collection
What it is
The gradient vector angle (in degrees)
The Illustrator Application object
Reference to the object defining the
gradient
The gradient hilite vector angle (in
degrees)

Advertisement

Table of Contents
loading

This manual is also suitable for:

Illustrator cs

Table of Contents