Home/ Reference/ Fill

shape.Fill.Fountain

The existing gradient object: .Colors, .Type, .Angle, .CenterX/Y.

Signature

shape.Fill.Fountain

Notes

The existing gradient object: .Colors, .Type, .Angle, .CenterX/Y.

Python example (runnable)

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

if shape.Fill.Type == 2:                       # 2 = fountain
    f = shape.Fill.Fountain                    # f : the fountain object
    print("Angle: ", f.Angle)
    print("Colour stops: ", f.Colors.Count)

    for i in range(1, f.Colors.Count + 1):
        print(i, "Position: ", f.Colors.Item(i).Position)

About this section: Fill

Fill — uniform, gradient and pattern fills.

Other entries in this section