Adobe 26001360 - Illustrator CS - PC Manual page 337

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

Advertisement

Adobe Illustrator CS Scripting Guide
Table 5.42 GradientStops — Properties
Property
Parent
Table 5.43 GradientStops — Methods
Method
Add
Index(item As GradientStop)
Item(itemKey)
RemoveAll()
Notes
Illustrator's GradientStop object represents a point on a specific gradient defined in the
Illustrator application. Each gradient stop specifies a color change in the containing gradient.
Example 23.1
This example illustrates how to add a new gradient stop to an existing gradient.
Dim appRef As New Illustrator.Application
Dim frontDocument As Illustrator.Document
Dim changeGradient As Illustrator.Gradient
Dim lastStop As Illustrator.GradientStop
Dim newStop As Illustrator.GradientStop
Set frontDocument = appRef.ActiveDocument
'Get a reference to the gradient that you want to change
Set changeGradient = frontDocument.Gradients(1)
'Get a reference to the gradient stop that is the last one
'before you add a new gradient stop
Dim originalCount As Integer
originalCount = changeGradient.GradientStops.Count
Set lastStop = changeGradient.GradientStops(originalCount)
'add the new gradient stop
Set newStop = changeGradient.GradientStops.Add
R/O
Value type
R/O
Document object
Returns
GradientStop object Creates a new object
Long
GradientStops
object
Nothing
12 Aug 03
What it is
The document that contains this gradient
stops object
What it does
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
337

Advertisement

Table of Contents
loading

This manual is also suitable for:

Illustrator cs

Table of Contents