GradientStops.Insert2 method (Office)

Adds a stop to a gradient, and specifies the brightness, as well as the transparency, of the color.

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 MsoThemeColorSchemeIndex 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.

See also

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.