GradientColorType Property
OneColorGradient
MsoGradientColorType can be one of these MsoGradientColorType constants. |
msoGradientColorMixed |
msoGradientOneColor |
msoGradientPresetColors |
msoGradientTwoColors |
expression.GradientColorType
*expression * Required. An expression that returns one of the objects in the Applies To list.
Example
This example changes the fill for all shapes in myDocument
that have a two-color gradient fill to a preset gradient fill.
Set myDocument = ActivePresentation.Slides(1)
For Each s In myDocument.Shapes
With s.Fill
If .GradientColorType = msoGradientTwoColors Then
.PresetGradient msoGradientHorizontal, _
1, msoGradientBrass
End If
End With
Next
Applies to | FillFormat Object