Table of Contents

Constructor GradientFill

Namespace
DocWright.Core.Rendering
Assembly
DocWright.Core.dll

GradientFill(GradientFillKind, IReadOnlyList<GradientStop>, Twips, Twips, Twips, Twips)

Initializes a gradient fill.

public GradientFill(GradientFillKind kind, IReadOnlyList<GradientStop> stops, Twips startX, Twips startY, Twips endX, Twips endY)

Parameters

kind GradientFillKind

How the stops are swept.

stops IReadOnlyList<GradientStop>

The stops, ordered by position ascending.

startX Twips

Linear: sweep start x. Radial: center x.

startY Twips

Linear: sweep start y. Radial: center y.

endX Twips

Linear: sweep end x. Radial: center x plus the horizontal radius.

endY Twips

Linear: sweep end y. Radial: center y plus the vertical radius.