GradientStops.Insert(Int32, Single, Single, Int32) Method

Definition

Adds a stop to a gradient.

public void Insert (int RGB, float Position, float Transparency = 0, int Index = -1);
abstract member Insert : int * single * single * int -> unit
Public Sub Insert (RGB As Integer, Position As Single, Optional Transparency As Single = 0, Optional Index As Integer = -1)

Parameters

RGB
Int32

Specifies the color at that the gradient stop.

Position
Single

Specifies the position of the stop within the gradient expressed as a percent.

Transparency
Single

Specifies the opacity of color at the gradient stop.

Index
Int32

The index number of the stop.

Remarks

Gradients are a smooth transition from one color state to another. The endpoints of these sections are called stops.

Applies to