Home/ Reference/ Enumerations

Fill.Type

0 none / 1 uniform / 2 fountain / 3 PostScript / 8 texture / 9 pattern / 10 bitmap pattern. The numbering is not 0-5 contiguous — the official enum has gaps, 5, 6 an

Signature

Fill.Type

Notes

0 none / 1 uniform / 2 fountain / 3 PostScript / 8 texture / 9 pattern / 10 bitmap pattern. The numbering is not 0-5 contiguous — the official enum has gaps, 5, 6 and 7 don't exist, and reciting a sequence will put you wrong. Full table at the end of this section.

Python example (runnable)

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

FILL_NAME = {0: "no fill", 1: "uniform", 2: "fountain"}
print("Fill type: ", shape.Fill.Type, FILL_NAME.get(shape.Fill.Type, "Other"))

# trust only 0 and 1; print the rest before hard-coding branches

About this section: Enumerations

Enumerations — VBA constants and their integer values.

Other entries in this section