GradientStops.Insert2 Method
Adds a stop to a gradient and specifies the brightness, as well as the transparency, of the color.
Namespace: Microsoft.Office.Core
Assembly: office (in office.dll)
Syntax
'Declaration
Sub Insert2 ( _
RGB As Integer, _
Position As Single, _
Transparency As Single, _
Index As Integer, _
Brightness As Single _
)
'Usage
Dim instance As GradientStops
Dim RGB As Integer
Dim Position As Single
Dim Transparency As Single
Dim Index As Integer
Dim Brightness As Single
instance.Insert2(RGB, Position, Transparency, _
Index, Brightness)
void Insert2(
int RGB,
float Position,
float Transparency,
int Index,
float Brightness
)
Parameters
RGB
Type: System.Int32Specifies the color at that the gradient stop.
Position
Type: System.SingleSpecifies the position of the stop within the gradient expressed as a percent.
Transparency
Type: System.SingleSpecifies the opacity of color at the gradient stop.
Index
Type: System.Int32The index number of the stop.
Brightness
Type: System.SingleSpecifies the brightness of the color at the gradient stop.
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 enables you to specify the brightness, as well as the transparency, of the color at the gradient stop.