GradientStop

GradientStop class

Represents one gradient stop.

To learn more, visit the Working with Graphic Elements documentation article.

public class GradientStop

Constructors

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

Properties

NameDescription
BaseColor { get; }Gets a value representing the color of the gradient stop without any modifiers.
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

NameDescription
Remove()Removes the gradient stop from the parent GradientStopCollection.

See Also