Share via


FillFormat.GradientStops Property

Returns the [GradientStops#SameCHM] collection associated with the specified fill format. Read-only.

Namespace:  Microsoft.Office.Interop.PowerPoint
Assembly:  Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)

Syntax

'Declaration
ReadOnly Property GradientStops As GradientStops
    Get
'Usage
Dim instance As FillFormat
Dim value As GradientStops

value = instance.GradientStops
GradientStops GradientStops { get; }

Property Value

Type: Microsoft.Office.Core.GradientStops
GradientStops

Remarks

You can use the [GradientStops.Insert#SameCHM] method to add gradient stops to the GradientStops collection for the specified object.

Examples

The following example shows how to add a gradient stop at the 50% position to the GradientStops collection of the fill format of the first shape on the first slide of the active presentation. For this example to work, the shape must already have a gradient fill applied.

Public Sub GradientStops_Example()



    Dim pptShape As Shape

    Dim pptFillFormat As FillFormat

    Dim pptGradientStops As GradientStops

    

    Set pptShape = ActivePresentation.Slides(1).Shapes(1)

    Set pptFillFormat = pptShape.Fill

    Set pptGradientStops = pptFillFormat.GradientStops

    

    pptGradientStops.Insert RGB(255, 0, 255), 0.5

    

End Sub

See Also

Reference

FillFormat Interface

FillFormat Members

Microsoft.Office.Interop.PowerPoint Namespace