Previous Document Next Document

What query methods are supported for fills?

You can perform queries that filter the fill properties of shapes on a page or layer.

To access the methods and properties of the current object, you must prepend the method or property name with the at sign ( @ ). Thus, @width calls the width method of the current object for which the expression is evaluated.

Expressions can be called without specifying the current object. In this case, the @ operator is unavailable.

Fill queries can return values of any of the other supported query object types (see the section “What can be queried?”).

The following query methods are supported for fills:

Method
Description
Example
Result
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
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
 
 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.