Class GradientFill
A gradient interior paint for a VectorPath.
public sealed class GradientFill : IEquatable<GradientFill>
- Inheritance
-
GradientFill
- Implements
- Inherited Members
Remarks
The geometry is fully resolved: every coordinate is in absolute top-down page twips, the same convention VectorPathSegment uses. Angles, relative fill rectangles and shape-local bounding boxes are all consumed before this point, so a renderer needs no knowledge of DrawingML to paint one — it maps the start/end points of a Linear sweep or the center and radii of a Radial sweep straight onto its own shading primitive. Stops are ordered by Position ascending.
Constructors
- GradientFill(GradientFillKind, IReadOnlyList<GradientStop>, Twips, Twips, Twips, Twips)
Initializes a gradient fill.
Properties
- EndX
Gets the sweep end x in page twips; the center x plus the horizontal radius for a radial sweep.
- EndY
Gets the sweep end y in page twips; the center y plus the vertical radius for a radial sweep.
- Kind
Gets how the stops are swept.
- RadiusX
Gets the horizontal radius of a radial sweep in twips.
- RadiusY
Gets the vertical radius of a radial sweep in twips.
- StartX
Gets the sweep start x in page twips; the center x for a radial sweep.
- StartY
Gets the sweep start y in page twips; the center y for a radial sweep.
- Stops
Gets the stops, ordered by position ascending.
Methods
- Equals(GradientFill?)
Determines equality.
- Equals(object?)
Determines equality.
- GetHashCode()
Computes a hash code.