Interface IGradientStop
Namespace: IronPPT.Interfaces
Assembly: IronPPT.dll
Syntax
public interface IGradientStop
IGradientStop is one color-and-position pair inside a gradient. It is the unit a developer works with when deciding which color a blend hits and where along the run it lands, so a gradient with three stops is three of these in order. You reach for the contract while tuning a gradient fill, adding a stop to introduce a new color or moving one to shift where the transition happens.
A stop is held in the StopPoints list of an IGradient rather than standing alone, so it is usually added to that list and then adjusted. The contract carries two members. Color is the IColor shown at this stop. StopPoint is an IDocUnit giving the position along the gradient where this color sits, measured in the document's units. Order the stops by position to control the sequence of colors. The concrete implementor in IronPPT is GradientStop, so code that builds a gradient constructs GradientStop values and adds them to the gradient's stop list.
gradient.StopPoints.Add(new GradientStop());The add shape example styles a shape, and the paragraph style example covers related styling.
Properties
Color
Declaration
IColor Color { get; set; }
Property Value
| Type | Description |
|---|---|
| IColor |
StopPoint
Declaration
IDocUnit StopPoint { get; set; }
Property Value
| Type | Description |
|---|---|
| IDocUnit |