Home/ Reference/ Fill

shape.Fill.ApplyUniformFill(color)

Sets a uniform fill in one call; build the color with app.CreateRGBColor(). Fewer hops than going through UniformColor.

Signature

shape.Fill.ApplyUniformFill(color)

Notes

Sets a uniform fill in one call; build the color with app.CreateRGBColor(). Fewer hops than going through UniformColor.

Python example (runnable)

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

# one-call uniform fill; the colour comes from app.CreateRGBColor
blue = app.CreateRGBColor(0, 133, 205)
shape.Fill.ApplyUniformFill(blue)
print("Filled")

About this section: Fill

Fill — uniform, gradient and pattern fills.

Other entries in this section