Home/ Reference/ Pattern / Texture Fill

shape.Fill.ApplyNoFill()

Removes the fill, making the shape transparent. Cleaner than filling with white: white covers what's underneath, no fill doesn't.

Signature

shape.Fill.ApplyNoFill()

Notes

Removes the fill, making the shape transparent. Cleaner than filling with white: white covers what's underneath, no fill doesn't.

Python example (runnable)

Requires pywin32. The example assumes app / doc / page / layer are already connected. See Connection & Init
Python
shape = app.ActiveSelectionRange(1)

print("Before removing fill: ", shape.Fill.Type)                 # 1=uniform 2=fountain ...
shape.Fill.ApplyNoFill()
print("After removing fill: ", shape.Fill.Type)                 # 0 = no fill

About this section: Pattern / Texture Fill

Pattern / Texture Fill — pattern, texture and PostScript fills.

Other entries in this section