[]
Represents a collection of IGradientStop objects.
public interface IGradientStops : IEnumerable
Gets the number of items in the IGradientStops collection (read-only).
int Count { get; }
Gets the IGradientStop object from the IGradientStops collection (read-only).
IGradientStop this[int index] { get; }
index
intThe name or index number of the returned object.
Removes a gradient stop.
void Delete(int index)
index
intThe index number of the gradient stop.
Adds a stop to a gradient and specifies the brightness, as well as the transparency of the color.
void Insert(int rgb, double position, double transparency = 0, int index = -1, double brightness = 0)
rgb
intSpecifies the color at the gradient stop.
position
doubleSpecifies the position of the stop within the gradient expressed as a percent.
transparency
doubleSpecifies the opacity of color at the gradient stop.
index
intThe index number of the stop.
brightness
doubleSpecifies the brightness of the color at the gradient stop.