PGetFillAndLine

Gets the style and color of the fill and line for the selected objects (drawn in PageMaker).


Query results

short cFillStyle;
kFillNone for none
kFillPaper for Paper
kFillSolid for Solid
kFillVertFew for vertical lines (few)
kFillVertLots for vertical lines (lots)
kFillHorizFew for horizontal lines (few)
kFillHorizLots for horizontal lines (lots)
kFillDiagFew for diagonal lines (few)
kFillDiagLots for diagonal lines (lots)
kFillHashFew for hashing (few)
kFillHashLots for hashing (lots)
-2 for more than one fill among selected objects
const char * sFillColor;
Name of color
short bFillOverprint;
0 for knockout any portion of an element posi tioned beneath object
1 for overprint all overlapping elements
short cLineStyle;
kLineNone for none
kLineHairline for Hairline
kLineHalfPoint for .5 pt
kLineOnePoint for 1 pt
kLineTwoPoint for 2 pt
kLineFourPoint for 4 pt
kLineSixPoint for 6 pt
kLineEightPoint for 8 pt
kLineTwelvePoint for 12 pt
kLineThinThin for thin/thin
kLineThickThin for thick/thin
kLineThinThick for thin/thick
kLineThinThickThin for thin/thick/thin
kLineThinDash for thin dash
kLineThinDash for medium dash
kLineThinDash for thick dash
kLineSquares for squares
kLineDots for dots
kLineSolid for a solid line of width specified by dWeight
-2 for more than one line style among selected objects
short bReverse;
0 for normal
1 for reverse line
-2 for multiple objects with different reverse settings
short dWeight;
Width of line in points in tenths of a point (5.5 = 55)
short bOpaque;
0 if background for compound, dashed, or dotted lines is transparent (default setting)
1 background for compound, dashed, or dotted lines is opaque
const char * sLineColor;
Name of color
short bLineOverprint;
0 if any portion of an element positioned beneath line is knocked out
1 if line overprints any portion of an element that it overlaps
short nFillTint;
Percentage of color applied to object's fill (from 0 to 100) in tenths of a percent (100% = 1000).
short nLineTint;
Percentage of color applied to object's line (from 0 to 100) in tenths of a percent (100% = 1000).
PageMaker objects only. The PGetFillAndLine query returns fill and line infor mation about objects drawn in PageMaker, not imported objects.

Multiple settings. If multiple objects are selected and they have different fills or line styles assigned to them, PageMaker returns -2 for cFillStyle or cLineStyle, respectively.

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 and line styles.

Tinted and shaded objects. The nFillTint parameter replaces the shade fill styles from PageMaker 5.0, which set solid fills from 10% to 80% of the object's color (using cFillStyle values 3 to 8). If an object's fill has been tinted using a PageMaker 5.0 shaded fill, PGetFillAndLine returns 2 (solid) for cFillStyle and the percentage of color for nFillTint.


See also

The PGetFillStyle and PGetLineStyle queries

The PFillAndLine, PFillStyle, and PLineStyle commands


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

Comments or suggestions? Contact Adobe Developer Support