shape.Outline.Justification
Where the outline sits relative to the path. Setting 2 on text puts the outline on the outside — that's how you give text a black edge without eating into the glyphs
Signature
shape.Outline.Justification
Notes
Where the outline sits relative to the path. Setting
2 on text puts the outline on the outside — that's how you give text a black edge without eating into the glyphs.Python example (runnable)
Requires
pywin32. The example assumes app / doc / page / layer are already connected.
See Connection & InitPython
shape = app.ActiveSelectionRange(1)
# outline position. For text use 2 (outside) or the edge eats the glyph
shape.Outline.Justification = 2
print("Outline position: ", shape.Outline.Justification)
About this section: Outline
Outline — stroke width, style and color.
- This section has 10 entries; this is one of them.
- See the full section index: Outline
Other entries in this section
- shape.Outline.WidthLine width in doc.Unit. Setting it to 0 removes the outline, which is
- shape.Outline.TypeOutline type. 0 = no outline.
- shape.Outline.Color.RGBAssign(r, g, b)Outline color in RGB.
- shape.Outline.Color.HexValueOutline color as hex, read/write.
- shape.Outline.LineJoinCorner style. 1 = miter; round and bevel are other values. The code us
- shape.Outline.LineCapsLine caps. 1 = round, 0 flat, 2 square.
- shape.Outline.StyleDash style (solid or one of the dashes).
- shape.Outline.StartArrow / .EndArrowStart and end arrowheads.