Home/ Reference/ Fountain Fill

ff.Angle

Read-only. The angle is a parameter of ApplyFountainFill() and nothing else; assigning ff.Angle = 90 afterwards raises. To change the angle, apply the fill again.

Signature

ff.Angle

Notes

Read-only. The angle is a parameter of ApplyFountainFill() and nothing else; assigning ff.Angle = 90 afterwards raises. To change the angle, apply the fill again.

Python example (runnable)

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

# the right way: pass the angle when you apply the fill
ff = shape.Fill.ApplyFountainFill(
    app.CreateRGBColor(255, 255, 255),
    app.CreateRGBColor(0, 133, 205),
    1,                                              # linear
    45)                                             # <- angle 45 goes here

print("Angle read back: ", ff.Angle)                    # 45

# ff.Angle = 90     # <- uncommenting this fails: Angle is read-only

About this section: Fountain Fill

Fountain Fill — linear and radial gradient fills.

Other entries in this section