Home/ Reference/ Fill

shape.Fill.UniformColor.RGBAssign(r, g, b)

Assigns RGB, each component 0-255. RGBAssign(0, 133, 205) in the code is that blue title bar.

Signature

shape.Fill.UniformColor.RGBAssign(r, g, b)

Notes

Assigns RGB, each component 0-255. RGBAssign(0, 133, 205) in the code is that blue title bar.

Python example (runnable)

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

# RGBAssign(R, G, B): three integers from 0 to 255
shape.Fill.UniformColor.RGBAssign(0, 133, 205)    # a typical corporate blue
print("Filled with RGB(0,133,205), hex: ", shape.Fill.UniformColor.HexValue)

About this section: Fill

Fill — uniform, gradient and pattern fills.

Other entries in this section