Previous Document Next Document

What query methods are supported for outlines?

You can perform queries that filter the outline 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.

Outline 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 outlines:

Method
Description
Example
Result
outline.Type()
Returns a string representing the outline type. The possible values are 'none', 'solid', 'dot-dash', and 'enhanced'.
@outline[.type = 'solid' or .type = 'dot-dash']
Selects all shapes with solid or dashed outlines
outline.Color()
Returns the color of the outline, or null if the shape doesn’t have an outline
 
 
outline.Width()
Returns the width of the outline, in points
@outline > {1 pt}
Checks whether the shape’s outline is wider than 1 pt
outline.IsHairline()
Returns True if the outline is hairline
 
 
outline.ScaleWithObject()
Returns True if the Scale Outline with Object option is set
 
 
outline.BehindFill()
Returns True if the Behind Fill option is set
 
 
outline.LineCaps()
Returns a string representing the line-cap type of the outline. Possible values are 'butt', 'round', and 'square'.
 
 
outline.LineJoin()
Returns a string representing the corner type of the outline. Possible values are 'miter', 'round', and 'bevel'.
 
 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.