Class GradientStop
Represents a gradient stop in a gradient fill.
Inheritance
System.Object
GradientStop
Namespace: IronWord.Models
Assembly: IronWord.dll
Syntax
public class GradientStop : Object
Constructors
GradientStop()
Declaration
public GradientStop()
Fields
FirstDefault
Return the default instance of the gradient stop.
Declaration
public static GradientStop FirstDefault
Field Value
| Type | Description |
|---|---|
| GradientStop |
SecondDefault
Return the default instance of the gradient stop.
Declaration
public static GradientStop SecondDefault
Field Value
| Type | Description |
|---|---|
| GradientStop |
Properties
Color
Gets or sets the scheme color of the gradient stop.
Declaration
public Color Color { get; set; }
Property Value
| Type | Description |
|---|---|
| Color |
StopPoint
Gets or sets the position of the gradient stop.
Declaration
public double StopPoint { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double |
Methods
GetStopPoint(MeasurementUnit)
Gets the position of the gradient stop.
Declaration
public double GetStopPoint(MeasurementUnit measurementUnit)
Parameters
| Type | Name | Description |
|---|---|---|
| MeasurementUnit | measurementUnit | The measurement unit for the position. |
Returns
| Type | Description |
|---|---|
| System.Double | The position of the gradient stop. |
SetStopPoint(Double, MeasurementUnit)
Sets the position of the gradient stop.
Declaration
public void SetStopPoint(double stopPoint, MeasurementUnit measurementUnit)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double | stopPoint | The position of the gradient stop. |
| MeasurementUnit | measurementUnit | The measurement unit of the position. |