Nocolor - Adobe 26001360 - Illustrator CS - PC Manual

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

Advertisement

372

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
Application
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
R/O
Value type
R/O
Application
12 Aug 03
Visual Basic Reference
What it is
Application to which the collection
belongs

Advertisement

Table of Contents
loading

This manual is also suitable for:

Illustrator cs

Table of Contents