GradientStops.Insert2 Method (Office)
Adds a stop to a gradient and specifies the brightness, as well as the transparency, of the color.
Version Information
Version Added: Office 2010
Syntax
expression .Insert2(RGB, Position, Transparency, Index, Brightness)
expression An expression that returns a GradientStops object.
Parameters
Name |
Required/Optional |
Data Type |
Description |
---|---|---|---|
RGB |
Required |
MsoRGBType |
Specifies the color at 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 the color at the gradient stop. |
Index |
Optional |
Integer |
The index number of the gradient stop. |
Brightness |
Optional |
Single |
Specifies the brightness of the color at the gradient stop. |
Return Value
Nothing
Remarks
Gradients are a smooth transition from one color state to another. The endpoints of these sections are called stops.
This method differs from the Insert method in that it allows you to specify the brightness, as well as the transparency, of the color at the gradient stop.