GradientStop

GradientStop class

Represents one gradient stop.

public class GradientStop

Constructors

Name Description
GradientStop(Color, double) Initializes a new instance of the GradientStop class.
GradientStop(Color, double, double) Initializes a new instance of the GradientStop class.

Properties

Name Description
Color { get; set; } Gets or sets a value representing the color of the gradient stop.
Position { get; set; } Gets or sets a value representing the position of a stop within the gradient expressed as a percent in range 0.0 to 1.0.
Transparency { get; set; } Gets or sets a value representing the transparency of the gradient fill expressed as a percent in range 0.0 to 1.0.

Methods

Name Description
Remove() Removes the gradient stop from the parent GradientStopCollection.

See Also