Table of Contents

Method AppliesTo

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

AppliesTo(IReadOnlyList<GradientStop>)

Gets a value indicating whether Word blends this stop list with the measured ramp.

public static bool AppliesTo(IReadOnlyList<GradientStop> stops)

Parameters

stops IReadOnlyList<GradientStop>

The stops, ordered by position ascending.

Returns

bool

True for exactly two stops, one at 0 and one at 100000.

Remarks

The predicate is on the stop list alone and is independent of the fill geometry. It was settled by a probe because the corpus could not: in the only document that exercises gradients, "exactly two stops" and "both stops at the extremes" never vary independently. Both halves are necessary - a two-stop list at 0 and 90000 exports as exponentials, and so does a three-stop list at 0, 50000 and 100000.