PresetGradientType Property
Applies To
FillFormat object.
Description
Returns the preset gradient type for the specified fill. Read-only Long.
Can be one of the following MsoPresetGradientType constants:
This property is read-only. Use the PresetGradient method to set the preset gradient type for the fill.
Example
This example changes the fill for all shapes in myDocument with the Moss preset gradient fill to the Fog preset gradient fill.
Set myDocument = ActivePresentation.Slides(1)
For Each s In myDocument.Shapes
With s.Fill
If .PresetGradientType = msoGradientMoss Then
.PresetGradient msoGradientHorizontal, 1, msoGradientFog
End If
End With
Next