Class GradientStopCollection
A typed collection of GradientStop objects on a GradientFill. Inherits all List<T> operations and adds Add(decimal, DrawingColor) (create new stop) convenience method.
Implements
Inherited Members
Namespace: DRIT.Document.Drawing
Assembly: DRIT.Document.dll
Syntax
public class GradientStopCollection : List<GradientStop>, IList<GradientStop>, ICollection<GradientStop>, IList, ICollection, IReadOnlyList<GradientStop>, IReadOnlyCollection<GradientStop>, IEnumerable<GradientStop>, IEnumerable
Methods
Add(decimal, DrawingColor)
Creates and adds a new gradient stop with the specified position and color.
Declaration
public GradientStop Add(decimal position, DrawingColor color)
Parameters
| Type | Name | Description |
|---|---|---|
| decimal | position | Stop position (0.0–1.0). |
| DrawingColor | color | Stop color. |
Returns
| Type | Description |
|---|---|
| GradientStop | The newly created gradient stop. |