Skip to content

SpreadMethod enumeration

Specifies how a gradient is extended beyond its defined bounds.

public enum SpreadMethod
name value description
Pad 0 The last stop color is used outside the gradient bounds.
Reflect 1 The gradient is reflected and repeated.
Repeat 2 The gradient is repeated.