GradientStop class

GradientStop class

Represents one gradient stop. To learn more, visit the Working with Graphic Elements documentation article.

Constructors

NameDescription
GradientStop(color, position)Initializes a new instance of the GradientStop class.
GradientStop(color, position, transparency)Initializes a new instance of the GradientStop class.

Properties

NameDescription
base_colorGets a value representing the color of the gradient stop without any modifiers.
colorGets or sets a value representing the color of the gradient stop.
positionGets or sets a value representing the position of a stop within the gradient expressed as a percent in range 0.0 to 1.0.
transparencyGets 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