Adobe 26001360 Scripting Guide - Page 372
NoColor, Table 5.77, Properties
UPC - 718659321840
View all Adobe 26001360 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 372 highlights
372 Visual Basic Reference NoColor Represents the "none" color. Assignment of a reference to a NoColor object to the document's default fill or stroke color, or those of an art item, is equivalent to setting their 'Filled' or 'Stroked' property to False. Table 5.77 NoColor - Properties Property R/O Value type Application R/O Application What it is Application to which the collection belongs Example 39.1 ' NoColor ' ' Create 2 overlapping objects with different fill colors. ' The top object is then assigned a fill color of "NoColor" ' allowing the bottom object to become visible. ' Dim appRef As New Illustrator.Application Dim docRef As Illustrator.Document Set docRef = appRef.Documents.Add() Dim itemRef1 As Illustrator.PathItem Dim itemRef2 As Illustrator.PathItem Set itemRef1 = docRef.PathItems.Rectangle(500, 200, 200, 100) Set itemRef2 = docRef.PathItems.Rectangle(550, 150, 200, 200) Dim colorRef As New Illustrator.RGBColor colorRef.Blue = 255 itemRef1.FillColor = colorRef colorRef.Red = 255 colorRef.Blue = 0 itemRef2.FillColor = colorRef appRef.Redraw ' create a nocolor and assign it to the top object MsgBox "Change red object to NoColor." Dim noColorRef As New Illustrator.NoColor itemRef2.FillColor = noColorRef appRef.Redraw 12 Aug 03