Class GradientStop
Inheritance
Implements
Namespace: IronPPT.Models
Assembly: IronPPT.dll
Syntax
public class GradientStop : Object, IGradientStop
Defining one color along a gradient's blend runs through GradientStop. Each stop fixes a single color at a position in the transition, and a list of these stops is what gives a Gradient its sequence of colors from start to end.
Color, an IColor, is the color the stop contributes, and StopPoint, an IDocUnit, is where along the blend that color lands. A gradient needs at least two stops to show a visible transition: one near the start and one near the end, with extra stops in between for multi-color blends. Build a GradientStop, set its Color and StopPoint, and add it to the StopPoints list on a Gradient. The order of the stop positions determines how the colors run across the shape, so set StopPoint deliberately rather than relying on insertion order alone. Since stops only have meaning inside a gradient, configure them while building that fill. To style the shape the gradient fills, start from the slide element workflow.
using IronPPT.Models;
var stop = new GradientStop();
gradient.StopPoints.Add(stop);The slide element tutorial styles elements on a slide, and the Gradient reference shows the fill these stops belong to.
Constructors
GradientStop()
Declaration
public GradientStop()
Properties
Color
Declaration
public IColor Color { get; set; }
Property Value
| Type | Description |
|---|---|
| IColor |
StopPoint
Declaration
public IDocUnit StopPoint { get; set; }
Property Value
| Type | Description |
|---|---|
| IDocUnit |