GradientStops.Insert Method
Adds a stop to a gradient.
Syntax
expression.Insert(RGB, Position, Transparency, Index)
expression An expression that returns a GradientStops object.
Parameters
| Name | Required/Optional | Data Type | Description |
|---|---|---|---|
| RGB | Required | MsoRGBType | Specifies the color at that the gradient stop. |
| Position | Required | Single | Specifies the position of the stop within the gradient expressed as a percent. |
| Transparency | Optional | Single | Specifies the opacity of color at the gradient stop. |
| Index | Optional | Long | 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.
Example
The following example creates three color gradient stops in Microsoft Office PowerPoint.
| Visual Basic for Applications |
|---|
|