PLineStyle

Applies a line style to the selected line, box, or oval; or, sets the line style of the next object drawn.


Command constructor

PLineStyle(short cLineStyle, short bReverse, short dWeight, short bOpaque);
short cLineStyle;
kParmDontCare to leave the line style unchanged
kLineNone or 0 (zero)
kLineHairline or 1
kLineHalfPoint
or 2
kLineOnePoint
or 3
kLineTwoPoint
or 4
kLineFourPoint
or 5
kLineSixPoint
or 6
kLineEightPoint
or 7
kLineTwelvePoint
or 8
kLineThinThin
or 9
kLineThickThin
or 10
kLineThinThick
or 11
kLineThinThickThin
or 12
kLineThinDash
or 13
kLineMediumDash
or 14
kLineThickDash
or 15
kLineSquares
or 16
kLineDots or 17
kLineCustomSolid
or 31 for a solid line of weight specified by dWeight
short bReverse;
false for normal
true to reverse line
kParmDontCare to leave reverse setting unchanged
short dWeight;
Weight of custom line from 0.1 to 800 points in tenths of a point (5.5 = 55).
kParmDontCare to leave line weight unchanged or for predefined line weights (e.g., hairline)
short bOpaque;
false to make transparent backgrounds for compound, dashed, or dotted lines
true to make opaque backgrounds for com pound, dashed, or dotted lines
kParmDontCare to leave background unchanged
Line weight. The exact weight of printed lines depends upon the resolution of your printer.

kParmDontCare for single object only. Use kParmDontCare only if a single object is selected. If multiple objects are selected, you must set all the PLineStyle attributes for the objects; you cannot leave certain attributes unchanged. For example, you cannot change just the color.

Reversing lines. If multiple lines with different weights are selected, then linestyle kParmDontCare, 1 sets them all to reverse without affecting weights.

Conversely, if multiple lines with mixed reverse and nonreversed styles are selected, then PLineStyle(kLineOnePoint, kParmDontCare); will set their weights without affecting the reverse style.

dWeight parameter overrides cStyle. Set the dWeight parameter to kParmDontCare unless you are defining a custom line. The value of dWeight overrides the line weight specified in cStyle.

Text tool, story editor, or no object. If the text tool is active, the PLineStyle command results in an error. If either the story editor is active or no PageMaker objects are selected, the specified line style becomes the default line for the publication.

Example. The following example selects the first object drawn and applies a line style that is four points wide and reversed. It then selects the second object drawn and applies a custom weight of 2.5 points. The line background is transparent.

PSelect(1);
PLineStyle(kLineFourPoint, true);
PSelect(2);
PLineStyle(kLineCustomSolid, false, 25, false);


See also

The PFillAndLine and PLine commands

The PGetFillAndLine and PGetLineStyle query

Adobe PageMaker 6.5 Help > Commands > Element > Line


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

Comments or suggestions? Contact Adobe Developer Support