Home/ Reference/ TextRange

rng.Fill

Text fill, same as a shape's Fill.

Signature

rng.Fill

Notes

Text fill, same as a shape's Fill.

Python example (runnable)

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

ca.Fill.UniformColor.RGBAssign(255, 255, 0)      # fill the text yellow
print("Text turned yellow")

About this section: TextRange

TextRange — character ranges inside a text object.

Other entries in this section