Share via


GradientStops.Insert Method

Adds a stop to a gradient.

Namespace:  Microsoft.Office.Core
Assembly:  office (in office.dll)

Syntax

'Declaration
Sub Insert ( _
    RGB As Integer, _
    Position As Single, _
    Transparency As Single, _
    Index As Integer _
)
'Usage
Dim instance As GradientStops
Dim RGB As Integer
Dim Position As Single
Dim Transparency As Single
Dim Index As Integer

instance.Insert(RGB, Position, Transparency, _
    Index)
void Insert(
    int RGB,
    float Position,
    float Transparency,
    int Index
)

Parameters

  • RGB
    Type: System.Int32

    Specifies the color at that the gradient stop.

  • Position
    Type: System.Single

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

  • Transparency
    Type: System.Single

    Specifies the opacity of 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.

See Also

Reference

GradientStops Interface

GradientStops Members

Microsoft.Office.Core Namespace