Previous Document Next Document

Including queries in macros : Understanding the available query criteria : Querying fills


Querying fills

You can query the fill properties of the shapes on a page or layer.

To access the fill properties of the current shape, you must prepend the property name with the at sign ( @ ). Thus, @type calls the Fill.Type property of the fill for the current shape.

 
You can call an expression without specifying the current shape. However, in this case, the @ operator is unavailable.

Fill queries can return values of any of the other supported object types (see Understanding the available query criteria).

Fills support the following query criteria:

Query criteria
Description
Example and result
fill.Color()
Returns the color of the uniform fill, or null if the fill is not uniform
@fill.color = 'blue'
Selects all shapes with a blue uniform fill
fill.Fountain()
Returns the properties of a fountain fill, or null if the fill is not fountain
 
fill.Type()
Returns a string representing the fill type. Possible values are 'none', 'uniform', 'fountain', 'postscript', 'pattern', 'texture', and 'hatch'.
@fill.type = 'fountain' and @fill.fountain.angle = 45
Selects all shapes with a 45-degree fountain fill

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.