GradientColorType Property

MsoGradientColorType

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 sets the fill format for the chart if its chart area has a one-color gradient fill.

With myChart.ChartArea.Fill
    If .Type = msoFillGradient Then
        If .GradientColorType = msoGradientOneColor Then
            .OneColorGradient Style:= msoGradientFromCorner, _
                 Variant:= 1, Degree:= 0.3
        End If
    End If
End With

Applies to | ChartFillFormat Object