PGetFillStyle

Gets the fill style applied to the currently selected object.


Query results

This query returns a short value, representing the fill style:
0 for none
1 for Paper

2 for Solid

9 for vertical lines (few)

10 for vertical lines (lots)

11 for horizontal lines (few)

12 for horizontal lines (lots)

13 for diagonal lines (few)

14 for diagonal lines (lots)

15 for hashing (few)

16 for hashing (lots)

-2 for more than one fill among selected objects

Default settings. If the text tool or story editor is active, or if no PageMaker drawn objects are selected, PageMaker gets the publication default fill style.

Multiple fill styles. If multiple objects are selected and have different fill styles, PageMaker returns -2.

Tinted or shaded objects. In PageMaker 6.5, you get the tint of an object's fill using the PGetFillAndLine query. If an object has a shaded fill from PageMaker 5.0, PGetFillStyle returns 2 (solid). Use PGetFillAndLine to obtain the percentage of the shade (from 10% to 80%).


See also

The PFillAndLine, PFillStyle, and PFillStyle commands


Copyright © 1996, Adobe Systems Incorporated. All rights reserved.

Comments or suggestions? Contact Adobe Developer Support