Adobe 26001360 Scripting Guide - Page 488
Illustrator. Item, PathItem.StrokeColor
UPC - 718659321840
View all Adobe 26001360 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 488 highlights
488 Changes InThe Object Model for Illustrator CS Properties which had previously been of type Illustrator.Color because they might hold one of several specific color types, such as Document.FillColor, PathItem.StrokeColor, etc. are now type Object. The current run-time type of the reference is now obtained using TypeName(objectRef). • A new color class, NoColor, has been added - which is used to emulate the not filled/not stroked/no color assigned state an art item can be assigned. Swatch "[None]"is a preexisting example of the use of 'NoColor'. • A reference to an Illustrator.PageItem class object can no longer be directly obtained. PageItem is the abstract base class for all page/art item types. The PageItems collection now returns a reference to a concrete PageItem-derived class such as PathItem, GroupItem, etc. when asked for a contained item. This makes the COM implementation more consistent with the existing JavaScript implementation. The only direct impact on existing scripts is that variables explicitly declared 'Dim pgItem As PageItem' must be changed to 'As Object' or 'As Variant'. The type (as a string) of an object reference can easily be determined using TypeName(objectReference). See section "Deprecated" on page 489 for other PageItem-related information. • The MultiScript framework now treats all integral values as long and floating point values as double. That treatment includes the type of object model properties as well as method return values. • A new Delete() method has been implemented for all all art items which simplifies the syntax for calling Delete() and makes the object model more consistent with other COM automation object models. This method is intended to replace the Remove() method. See Remove() in section "Deprecated" on page 489 for more information. • A new Move() method has been implemented for layers and all art items which provides a direct way to specify both target container as well as relative position in a single call. This method replaces a set of 4 methods. See MoveBefore() in section Deprecated (below). A new enumeration, AiElementPlacement, has also been added to provide a mechanism for specifying both move and duplicate target positioning. • The Duplicate() method has been enhanced to provide a direct way to specify both target container as well as relative position in a single call. Previously, an item had to be first duplicated and then repositioned (moved) in 2 separate operations. • Error message handling has been made more robust with the objective of providing better context information in the messages. For example, rather than simply returning a generic error when the value passed in a method call is not valid, the error handling system will now attempt to report which argument was not valid. The specific text of some error messages will have changed as a result. 12 Aug 03